From 81e24c5b173c188d9497b05b0df14865775d5e6d Mon Sep 17 00:00:00 2001 From: Daniel Saidi Date: Wed, 14 Feb 2024 13:37:25 +0100 Subject: [PATCH] Fix incorrect platform check in demo app, to make commands work again --- Demo/Shared/DemoApp.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Demo/Shared/DemoApp.swift b/Demo/Shared/DemoApp.swift index 4dee68fc2..8dadfb3bf 100644 --- a/Demo/Shared/DemoApp.swift +++ b/Demo/Shared/DemoApp.swift @@ -15,10 +15,11 @@ struct DemoApp: App { WindowGroup { ContentView() }.commands { - #if macOS + #if os(macOS) AboutCommand() - RichTextFormatCommandMenu() - RichTextShareCommandMenu( + #endif + RichTextCommand.FormatMenu() + RichTextCommand.ShareMenu( isEnabled: true, shareFormats: .libraryFormats, exportFormats: RichTextDataFormat.archivedData.convertibleFormats, @@ -37,7 +38,6 @@ struct DemoApp: App { printAction: { print("TODO: Export document") } ) SidebarCommands() - #endif } } }