Xcode – Treating a forced downcast to 'SCNView' as optional will never produce 'nil'
Starting with swift 4.2, an error appears. In previous versions the code works fine (swift 3, 4). How to write this code correctly now? swift4 swift4.2 class GameViewController: UIViewController { var scene: SCNScene! var scnView: SCNView! override func viewDidLoad() {…