Post

Replies

Boosts

Views

Activity

Reply to MetalKit Xcode 12 wrong bound size iPhone XS Max
Just an update, the mtkView function extension Renderer: MTKViewDelegate {   func mtkView(_ view: MTKView, drawableSizeWillChange size: CGSize) {     .....   } .... } gets invoked on the simulator and on the iPad during debugging, it does not get invoked during debugging on an iPhone device. It does get invoked during running without debugging! I just tried Xcode 12.2 beta and the same result! Please help
Sep ’20
Reply to MetalKit Xcode 12 wrong bound size iPhone XS Max
Another update, by adding the following code to the GameViewController everything works during debugging override func willTransition(to newCollection: UITraitCollection, with coordinator: UIViewControllerTransitionCoordinator) {         coordinator.animate(alongsideTransition: { context in             if UIApplication.shared.statusBarOrientation.isLandscape {                 // activate landscape changes                 os_log("Landscape")             } else {                 // activate portrait changes                 os_log("portrait")             }         })     } Can someone please explain why? Thank you in advance!
Sep ’20