I have a simple app with an iOS target that is configured for iPhone, iPad, and Mac, making it a Catalyst app. On Xcode 12.0 Beta 1, I tried adding a Settings scene to my app. The documentation page says it is compatible with both macOS 11.0+ and Mac Catalyst 14.0+. The entirety of my app is this:
Based on the WWDC 2020 Whats new in SwiftUI video (4:50), I would expect this to automatically add a "Preferences..." menu option, which would show "Settings here." However, this option never shows up. I also tried replacing #if os(macOS) with #if targetEnvironment(macCatalyst), which had no effect.
Code Block swift import SwiftUI @main struct TestSettingsApp: App { @SceneBuilder var body: some Scene { WindowGroup { Text("Hello, world!").padding() } #if os(macOS) Settings { Text("Settings here.") } #endif } }
Based on the WWDC 2020 Whats new in SwiftUI video (4:50), I would expect this to automatically add a "Preferences..." menu option, which would show "Settings here." However, this option never shows up. I also tried replacing #if os(macOS) with #if targetEnvironment(macCatalyst), which had no effect.
Update: It appears that the Settings documentation page has been updated to no longer show compatibility with Mac Catalyst 14.0+. I guess it was a typo.