Home > Net >  How to create whole screen overlay in MacOS with Swift?
How to create whole screen overlay in MacOS with Swift?

Time:01-25

There's an app called enter image description here

I tried creating a floating panel which utilizes NSPanel (adapted from floating panel I know I can create a new window in full screen mode and achieve a similar result, however I want to draw this overlay directly on top of the screen without entering full screen mode. How can I achieve this result in the way the Intermission app does it?

CodePudding user response:

I figured it out! The trick is to set NSWindow.Level to .popUpMenu. This allows it to appear above the menubar and dock.

  • Related