Czkii
Czkii

Reputation: 53

SpriteKit - SKScene bounds are not equal to SKView bounds

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

Upvotes: 2

Views: 277

Answers (1)

pawello2222
pawello2222

Reputation: 54611

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

Upvotes: 5

Related Questions