Skip to content

Commit dcfafc1

Browse files
committed
Prevent swift-format issue
1 parent 1b866ec commit dcfafc1

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

Tests/ComposableArchitectureTests/WithViewStoreAppTest.swift

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,23 @@ struct TestApp: App {
2222
checkAccessibilityRotor()
2323
checkToolbar()
2424
}
25-
}
26-
#if os(iOS) || os(macOS)
27-
.commands {
28-
WithViewStore(self.store) { viewStore in
25+
}
26+
}
27+
28+
#if os(iOS) || os(macOS)
29+
var commands: some Scene {
30+
self.body.commands {
31+
WithViewStore(self.store) { viewStore in
2932
CommandMenu("Commands") {
3033
Button("Increment") {
3134
viewStore.send(())
3235
}
3336
}
3437
}
35-
}
36-
#endif
38+
}
3739
}
38-
40+
#endif
41+
3942
@ViewBuilder
4043
func checkToolbar() -> some View {
4144
Color.clear

0 commit comments

Comments
 (0)