2

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

pawello2222
  • 46,897
  • 22
  • 145
  • 209
Czkii
  • 53
  • 4
  • It looks like it is a SafeArea. Hard to tell more without additional information - preferably add the [Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example) – pawello2222 Sep 17 '20 at 22:17
  • So let me explain. Whenever you create a brand new game project in Xcode, you get a Hello World template (animation of scaling label, and colorful hexagons on touches bagan). Background is bounded to view.frames.bounds, but in my case is's cut at bottom and top. I've attached an image to main post :) – Czkii Sep 18 '20 at 14:48

1 Answers1

5

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

pawello2222
  • 46,897
  • 22
  • 145
  • 209