SpriteKit - SKScene bounds are not equal to SKView bounds

251 Views Asked by At

Recently I've created a new Xcode - Game project. Without touching anything I ran the template. I was expecting a standard Hello World! app, but I noticed one thing. Instead of pretty filled background, I got scene cut at the top and the bottom.

How can I make it fill the whole screen?

attached image

1

There are 1 best solutions below

0
On BEST ANSWER

It looks like the default SpriteKit Game template is missing a Launch Screen. You need to add it manually:

  1. Add a Launch Screen:

New File -> iOS -> User Interface -> Launch Screen

  1. Set the name of your new launch screen in:

[Your Project] -> General -> Launch Screen File