Background:
We have an iOS app that supports a single window. We are using a UISceneDelegate
. We do not support multiple windows or scenes.
Problem:
When a user mirrors the screen of their iPhone device, iOS automatically initializes a new scene with a non-interactive display role. For the time being, we would like to disable opting into this and instead simply mirror the existing device window.
Going through the docs, I haven't been able to find any way of doing this. All the docs appear to assume that once you start supporting UIScene
, you should automatically support any screen size, aspect ratio or connected display.
In the Scenes Overview section, it claims that setting UIApplicationSupportsMultipleScenes to false
will never create multiple windows, but I've confirmed under the debugger that this isn't true.
Any ideas?
Repro Steps:
- Create an iOS app with a single window that supports
UISceneDelegate
- Launch the app on your iPhone (tested using iOS 17.3)
- Turn on your Apple TV
- From Control Center, tap the mirror icon (two small windows)