Skip to content

Instantly share code, notes, and snippets.

@sturdysturge
Created July 21, 2020 16:41
Show Gist options
  • Save sturdysturge/389cbca088651633967b0022ea61d82b to your computer and use it in GitHub Desktop.
Save sturdysturge/389cbca088651633967b0022ea61d82b to your computer and use it in GitHub Desktop.
RevDoc Mac Styles
import SwiftUI
@main
struct MyApp: App {
var body: some Scene {
WindowGroup {
ContentView()
.groupBoxStyle(DefaultGroupBoxStyle())
.presentedWindowStyle(TitleBarWindowStyle())
.presentedWindowStyle(HiddenTitleBarWindowStyle())
.presentedWindowToolbarStyle(UnifiedWindowToolbarStyle())
.presentedWindowToolbarStyle(ExpandedWindowToolbarStyle())
.presentedWindowToolbarStyle(UnifiedCompactWindowToolbarStyle())
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment