SKLabelNodes now Support Multiple Lines in iOS11

But we'll also look at the pre-iOS11 way of handling this

In this video tutorial we’ll look at some new Swift 4 code you can use if you are targeting iOS11 or higher that allows you to set the number of lines in an SKLabelNode. Yes that exists now. It was a long time coming.

But we’ll also look at the older way of doing this, by writing a convenience function that takes in two labels and splits one long text String into two Strings. We’ll do this by iterating through the letters (characters) in the string and figuring out at what point we want to split it up.

Got something to sell online? We trust the amazing tools from Easy Digital Downloads