Skip to content

Commit

Permalink
Fix incorrect platform check in demo app, to make commands work again
Browse files Browse the repository at this point in the history
  • Loading branch information
danielsaidi committed Feb 14, 2024
1 parent 7535111 commit 81e24c5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Demo/Shared/DemoApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -37,7 +38,6 @@ struct DemoApp: App {
printAction: { print("TODO: Export document") }
)
SidebarCommands()
#endif
}
}
}

0 comments on commit 81e24c5

Please sign in to comment.