I'm trying to show a scene on an external display (iOS). I made a simple program using what I have found regarding this topic, but it doesn't work. I suspect that I'm just missing a setting or two.I started with the simple 'Hello, World' example game that XCode makes for an iOS SpriteKit project. I modified the GameViewController class to the following:class GameViewController: UIViewController { var primaryView: SKView? var secondaryView: SKView? override func viewDidLoad() { super.viewDidLoad() checkForExternalDisplay() if let view = primaryView { if let scene = SKScene(fileNamed: GameScene) { scene.scaleMode = .aspectFill view.presentScene(scene) } view.ignoresSiblingOrder = true view.showsFPS = true view.showsNodeCount = true } }Here is the code for 'checkForExternalDisplay': func checkForExternalDisplay() { let screens = UIScreen.screens if screens.count > 1 { let mainScreenIndex = self.view.frame.width == screens[0].bounds.width ? 0 : 1 let otherScreenIndex = self.view.frame.width == screens
5
0
1.3k