Thursday Discount - Lifetime Access for $20!!!! - Click Here!

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.




Know what an affiliate program is? You make money just by sharing links to our site! Win. Win.

Earn when you refer any buyer here! 30 day tracking. Commissions are 33%-50% and recur on subscription products!