File tree Expand file tree Collapse file tree 5 files changed +24
-22
lines changed
SpeechRecognition/SpeechRecognition Expand file tree Collapse file tree 5 files changed +24
-22
lines changed Original file line number Diff line number Diff line change @@ -3,14 +3,14 @@ import SwiftUI
33
44@main
55struct SearchApp : App {
6+ static let store = Store ( initialState: Search . State ( ) ) {
7+ Search ( )
8+ . _printChanges ( )
9+ }
10+
611 var body : some Scene {
712 WindowGroup {
8- SearchView (
9- store: Store ( initialState: Search . State ( ) ) {
10- Search ( )
11- . _printChanges ( )
12- }
13- )
13+ SearchView ( store: Self . store)
1414 }
1515 }
1616}
Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ import SwiftUI
33
44@main
55struct SpeechRecognitionApp : App {
6+ static let store = Store ( initialState: SpeechRecognition . State ( ) ) {
7+ SpeechRecognition ( )
8+ . _printChanges ( )
9+ }
10+
611 var body : some Scene {
712 WindowGroup {
8- SpeechRecognitionView (
9- store: Store ( initialState: SpeechRecognition . State ( ) ) {
10- SpeechRecognition ( ) . _printChanges ( )
11- }
12- )
13+ SpeechRecognitionView ( store: Self . store)
1314 }
1415 }
1516}
Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import SwiftUI
55struct SyncUpsApp : App {
66 // NB: This is static to avoid interference with Xcode previews, which create this entry
77 // point each time they are run.
8- @MainActor
98 static let store = Store ( initialState: AppFeature . State ( ) ) {
109 AppFeature ( )
1110 . _printChanges ( )
Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ import SwiftUI
33
44@main
55struct TodosApp : App {
6+ static let store = Store ( initialState: Todos . State ( ) ) {
7+ Todos ( )
8+ . _printChanges ( )
9+ }
10+
611 var body : some Scene {
712 WindowGroup {
8- AppView (
9- store: Store ( initialState: Todos . State ( ) ) {
10- Todos ( )
11- }
12- )
13+ AppView ( store: Self . store)
1314 }
1415 }
1516}
Original file line number Diff line number Diff line change @@ -3,13 +3,14 @@ import SwiftUI
33
44@main
55struct VoiceMemosApp : App {
6+ static let store = Store ( initialState: VoiceMemos . State ( ) ) {
7+ VoiceMemos ( )
8+ . _printChanges ( )
9+ }
10+
611 var body : some Scene {
712 WindowGroup {
8- VoiceMemosView (
9- store: Store ( initialState: VoiceMemos . State ( ) ) {
10- VoiceMemos ( ) . _printChanges ( )
11- }
12- )
13+ VoiceMemosView ( store: Self . store)
1314 }
1415 }
1516}
You can’t perform that action at this time.
0 commit comments