How to Test a Specific Device Before Loading SKScene Files

Learn how to test for a specific device before loading a Sprite Kit scene file (SKScene). This is an important lesson for iOS and tvOS developers as it allows you to make different GUI / layouts via the scene editor, without resorting to layout changes in the Swift code itself. We’ll also discuss how to properly get the scene width and height.

 




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!


Uh oh, missing your affiliate ID. Create one real quick