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.

 


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