Hello, I’m trying to follow Chapter 19 transitions, and when I am getting the follow compiling error. I’ve tried checking apple documentation and tried the method presentScene but got the same error. Anyone know whats going on?
func setupView() {
//scnView = self.view as! SCNView
scnView = SCNView(frame: self.view.frame)
self.view.addSubview(scnView)
scnView.showsStatistics = true
scnView.allowsCameraControl = false
scnView.autoenablesDefaultLighting = true
scnView.isPlaying = true
scnView.present(scnScene, with: transition, incomingPointOfView: nil, completionHandler: {
self.game.state = .playing
self.setupSounds()
self.gameScene.isPaused = false
})
}