I have a SwiftUI app and want to ensure that the window is always on top of other windows, that includes being the top layer of all my app's windows, as well as any other active / fullscreen apps running on the machine.
I have seen various similar questions with answer such as those found here
I have had some success using:
for window in NSApplication.shared.windows {
window.level = .floating
}
Which works so long as no other app grabs full screen - however my intention now is to have it also stay on top of other full screen active apps.
Can somebody help me understand how I can access my view's class so I can override this function from a Swift Mac OS app.