Tag: SwiftUI/macOS
struct swiftuidemoApp: App { var body: some Scene { WindowGroup { ContentView() .frame(maxWidth: .infinity, maxHeight: .infinity) // .frame(minWidth: 800, maxWidth: .infinity, minHeight: 500, maxHeight: .infinity) } } }
struct ContentView: View { private let url = "https://www.apple.com" var body: some View { WebView(url: url).toolbar { ToolbarItemGroup(placement: .primaryAction) { Button(action: { }, label: { Image(systemName: "sidebar.left").imageScale(.large) }) } } } }