In my Application, I'm trying to make it so that my AVPlayerView hides the titlebar when the mouse is idle.
Screenshot: https://i.stack.imgur.com/rMcrv.png
Basically I want the the same effect the video controls have in which it automatically disappears if no mouse activity.
Screenshot: https://i.stack.imgur.com/TtTtb.png
Here is what I have right now:
override func viewDidAppear() {
super.viewDidAppear()
self.view.window?.titleVisibility = NSWindowTitleVisibility.Hidden;
self.view.window?.titlebarAppearsTransparent = false
self.view.window?.styleMask = NSTitledWindowMask | NSFullSizeContentViewWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask
}
Any tips? Thanks!