I have a Swift app for macOS that successfully draws on the desktop and other apps using a transparent view that is rendered on top:
self.view.window!.level = Int(CGWindowLevelForKey(.maximumWindow))
and subclassed NSBezierPath.
However when I try to run the app on top of Keynote in presentation mode, the app displays, and keynote runs, but as soon as I interact with the app, Keynote disappears. I believe its still in presentation mode, just minimised. Upshot is, I can't draw on top of keynote slides in presentation mode.
Does anyone know how can I keep my app running on top of Keynote?
Apps like DeskScribble manage to do this.
Thanks!