New to Spritekit
and trying to fix the width of a SKLabelNode
and then adjust the font of text to fit within the node accordingly.
Have been looking through the docs but cant seem to find anything suitable, like the UILabel
function:
A UILabel.adjustsFontSizeToFitWidth = true
Thanks
This is a nice function that I found a while back, but I can't remember exactly where
This adjusts the font size of the label to fit the width exactly, but you may want to change the function in order to add some extra padding on all sides.