Screen mirroring in iOS13 (how?)

TLDR; Anyone know how to have an app 'mirrored' to an external/AirPlay screen in iOS13?


In previous (to iOS13) versions, the application screen would automatically be 'mirrored' on an external screen (or AirPlay) unless told to do otherwise (by explicitly adding UIWindows to UIScreens etc.)


In iOS13 things changed and now we get a UIWindowSceneSessionRoleExternalDisplay offered (to which we attach a UIWindowSceneDelegate) just like we do for multiple windows. There doesn't seem to be a way of just saying 'mirror me'.


Thanks in advance.

Replies

Turns out you can return nil now from application:configurationForConnectingSceneSession:options


(didn't work in earlier betas.)


Still don't know how (or if) it's possible to switch from mirror to app defined windowscene?