We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d4c40d commit f99fa5bCopy full SHA for f99fa5b
Tests/ComposableArchitectureTests/WithViewStoreAppTest.swift
@@ -17,17 +17,23 @@ import SwiftUI
17
18
var body: some Scene {
19
WithViewStore(self.store) { viewStore in
20
- WindowGroup {
21
- EmptyView()
22
- }
23
- .commands {
24
- CommandMenu("Commands") {
25
- Button("Increment") {
26
- viewStore.send(())
+ #if os(iOS) || os(macOS)
+ WindowGroup {
+ EmptyView()
+ }
+ .commands {
+ CommandMenu("Commands") {
+ Button("Increment") {
27
+ viewStore.send(())
28
29
+ .keyboardShortcut("+")
30
}
- .keyboardShortcut("+")
31
32
+ #else
33
34
35
36
+ #endif
37
38
39
0 commit comments