My UIKit/Mac Catalyst app supports a user opening multiple windows (multiple scenes). One of these is a special scene that shows content that I want to appear in front of all other app windows/scenes, even while the user is interacting with one of the app's other scenes. I do not need this special scene to stay in front of the windows of other apps, just in front of the windows of my own app.
While I'm not 100% sure, it seems that AppKit supports this through the NSWindow level
property. I can't find any equivalent feature in UIKit/Mac Catalyst. UIWindow windowLevel
is not the same thing since that only affects the order of windows within a given scene. I need an entire scene (and its windows) to stay in front of my app's other scenes (and their windows).
I don't see anything relevant in UIWindow
, UIScene
, UIWindowScene
, UISceneSession
, UIScene.ActivationRequestOptions
, or UIWindowScene.ActivationRequestOptions
.
When you attach the window
to the new scene
instance call makeKeyAndVisible
.. It should show the window and position it in front of all other windows at the same level or lower.