Showcase of window and toolbar styles on macOS using SwiftUI.
→ HOW TO: Add the .windowStyle()
and/or .windowToolbarStyle()
modifiers to WindowGroup
within you App
struct:
WindowGroup { /* ... */ }
.windowStyle(.automatic)
.windowToolbarStyle(.automatic)
🧑💻 Have a look at the SwiftUI source file in order to see how to create the toolbar etc.
🦖 If you are an AppKit developer you might find this helpful as well: NSWindowStyles.
Feel free to make a pull request if you have a style to add.
.windowStyle(.hiddenTitleBar)
I’m Martin, an indie dev from Berlin. Enjoying my work? Have a look at some great apps of mine on the Mac App Store 🌀