Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix iOS-app crashing when connecting an external display
External display connection invokes scene:willConnectTo:options again with the session.role .windowExternalDisplayNonInteractive: https://developer.apple.com/documentation/uikit/windows_and_screens/presenting_content_on_a_connected_display This needs to be explicitly handled or rejected, otherwise the app crashes with the error: Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'A view can only be associated with at most one view controller at a time!"
- Loading branch information