My problem is header of window in fullscreen mode.
When I move cursor to the top of screen I see the following:
But I want to see the following:
Hiding of buttons is not a problem:
wnd.standardWindowButton(NSWindow.ButtonType.closeButton)?.isHidden = true
wnd.standardWindowButton(NSWindow.ButtonType.miniaturizeButton)?.isHidden = true
wnd.standardWindowButton(NSWindow.ButtonType.zoomButton)?.isHidden = true
but how to hide the line?
Google say nothing about this =(
Maybe there is some sort of additional "safe zone area" that must be disabled in another way?
WindowGroup {
SomeView()
.edgesIgnoringSafeArea(.top)
}
.windowStyle( HiddenTitleBarWindowStyle() )
hides only titlebar from windowed mode, but not from fullscreen
The code:
NSApp?.mainWindow?.styleMask.insert(NSWindow.StyleMask.unifiedTitleAndToolbar)
NSApp?.mainWindow?.styleMask.insert(NSWindow.StyleMask.fullSizeContentView)
NSApp?.mainWindow?.styleMask.insert(NSWindow.StyleMask.titled)
NSApp?.mainWindow?.toolbar?.isVisible = false
NSApp?.mainWindow?.titleVisibility = .hidden
NSApp?.mainWindow?.titlebarAppearsTransparent = true
also do nothing with header line in fullscreen mode

