kirtan-shah
kirtan-shah

Reputation: 473

How to create whole screen overlay in MacOS with Swift?

There's an app called Intermission that creates a whole screen overlay: enter image description here

I tried creating a floating panel which utilizes NSPanel (adapted from https://cindori.com/developer/floating-panel), but it is unable to expand beyond the toolbar/app bar.

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?

Upvotes: 2

Views: 2123

Answers (1)

kirtan-shah
kirtan-shah

Reputation: 473

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

Upvotes: 2

Related Questions