in the gameViewController there is an error showing for this line
let skView = view as! SKView it is saying Expected ‘)’ in expression list. What does that mean?
here is my setup
import UIKit
import SpriteKit
class GameViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let scene = GameScene(size:CGSize(width: 1536, height: 2048)
let skView = view as! SKView
skView.showsFPS = true
skView.showsNodeCount = true
skView.ignoresSiblingOrder = true
scene.scaleMode = .aspectFill
skView.presentScene(scene)
}
override var prefersStatusBarHidden: Bool {
return true
}
}
var supportedInterfaceOrientation: UIInterfaceOrientationMask {
return .portrait
}