how to get the screen width and height in spritekit code example Example: get device height spritekit print("Screen size: \(UIScreen.main.bounds.size)")