The iPhone X is released a few days ago. I am trying to update one of my game to the new phone. However, on one scene with SpriteKit scene, the scene doesn't scale to fill the entire screen.
Here is the code to display the scene:
GameScene *scene = [GameScene unarchiveFromFile:@"GameScene"];
scene.scaleMode = SKSceneScaleModeFill;
// skView is basically self.view casted to SKView
[skView presentScene:scene];
The size of the scene in the SKS file is 2048x1536.
This is what it looks like:
The red part is the scene content. One interesting thing is, the background (which is the blue and gray, does get displayed properly.
Anyway to fix this? I'm fine with just stretching the scene to fill the display (there won't be anything covered up by the rounded corner and the notch)
