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
Post
Replies
Boosts
Views
Activity
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!
It is the same with me, Im running the latest Xcode 12, not the beta 12.2 and seeing the memory leakage on the iMac 2017(Radeon Pro 580 8GB).