SwiftUI - How to hide window title on macOS

Viewed 1354
2 Answers

You need to use the following window style:

WindowGroup {
    ContentView()
}
.windowStyle(HiddenTitleBarWindowStyle())

Now it's:

WindowGroup {
  ContentView()
}
.windowStyle(.hiddenTitleBar)
Related