MacOS: Any way to hide the window title, not toolbar item shortcuts?

I am trying to make the application very similar to the Apple Mac OS App Store, where the window title does not appear, but it has a toolbar with icons and shortcuts.

App store

The problem is that when I set the window title to hide in my Window Controller, it also hides the toolbar labels.

window?.titleVisibility = .hidden

I tried to explicitly set the toolbar to display icons and labels, but it seems to be ignoring it.

toolbar.displayMode = .iconAndLabel

Here is a screenshot of my application with and without header settings: Setting titleVisibility to.hidden Without setting titleVisibility

+4
source share
2 answers

"" / nswindow, . INAppStoreWindow ( 4 ;)) github, , appstor

0

self.window?.titleVisibility = .hidden

self.window.title = "" // no title but the labels for toolbar icons are there
0

Source: https://habr.com/ru/post/1672766/


All Articles