I would like to make a game using a UIViewController for the Menu and a SKScene for the GameScene.
When the player press the Play button on the Menu, I would like a transition between the Menu and the GameScene with something like :
let nextScene = GameViewController()
self.presentViewController(nextScene, animated: true, completion: nil)
But I got this error :
Could not cast value of type 'UIView' (0x19ff623e0) to 'SKView' (0x19f813e70).
How can I do this please ?