Odd SwiftUI Bug on macOS
This is an odd bug on macOS:
- Make the main content view a
NavigationSplitView
:
struct ContentView: View {
var body: some View {
NavigationSplitView {
Spacer()
} content: {
Spacer()
} detail: {
Spacer()
}
}
}
-
Launch the app.
-
Observe that there is an “Enter Full Screen” menu item in the “View” menu.
-
Go to the Finder.
-
Go back to the app. Observe that the “Enter Full Screen” menu item in the “View” menu is gone.
Filed as FB12064842
.