Add Options To The macOS Menu Bar With SwiftUI Commands
Daily Coding Tip 244
WindowGroup is the parent of ContentView in the default SwiftUI app.
I’m going to start by creating CommandsView. This is taking advantage of the fact that the implicit @ViewBuilder designation of the body property allows you to pass a bunch of views in with no parent. This means that there is no layout like VStack, so i…
Keep reading with a 7-day free trial
Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

