Skip to content
12 changes: 6 additions & 6 deletions Examples/Search/Search/SearchApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import SwiftUI

@main
struct SearchApp: App {
static let store = Store(initialState: Search.State()) {
Search()
._printChanges()
}

var body: some Scene {
WindowGroup {
SearchView(
store: Store(initialState: Search.State()) {
Search()
._printChanges()
}
)
SearchView(store: Self.store)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ import SwiftUI

@main
struct SpeechRecognitionApp: App {
static let store = Store(initialState: SpeechRecognition.State()) {
SpeechRecognition()
._printChanges()
}

var body: some Scene {
WindowGroup {
SpeechRecognitionView(
store: Store(initialState: SpeechRecognition.State()) {
SpeechRecognition()._printChanges()
}
)
SpeechRecognitionView(store: Self.store)
}
}
}
1 change: 0 additions & 1 deletion Examples/SyncUps/SyncUps/App.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import SwiftUI
struct SyncUpsApp: App {
// NB: This is static to avoid interference with Xcode previews, which create this entry
// point each time they are run.
@MainActor
static let store = Store(initialState: AppFeature.State()) {
AppFeature()
._printChanges()
Expand Down
11 changes: 6 additions & 5 deletions Examples/Todos/Todos/TodosApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@

@main
struct TodosApp: App {
static let store = Store(initialState: Todos.State()) {

Check failure on line 6 in Examples/Todos/Todos/TodosApp.swift

View workflow job for this annotation

GitHub Actions / Examples

cannot convert value of type 'Todos.State' to expected argument type '_'
Todos()
._printChange()

Check failure on line 8 in Examples/Todos/Todos/TodosApp.swift

View workflow job for this annotation

GitHub Actions / Examples

value of type 'Todos' has no member '_printChange'
}

var body: some Scene {
WindowGroup {
AppView(
store: Store(initialState: Todos.State()) {
Todos()
}
)
AppView(store: Self.store)
}
}
}
11 changes: 6 additions & 5 deletions Examples/VoiceMemos/VoiceMemos/VoiceMemosApp.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ import SwiftUI

@main
struct VoiceMemosApp: App {
static let store = Store(initialState: VoiceMemos.State()) {
VoiceMemos()
._printChanges()
}

var body: some Scene {
WindowGroup {
VoiceMemosView(
store: Store(initialState: VoiceMemos.State()) {
VoiceMemos()._printChanges()
}
)
VoiceMemosView(store: Self.store)
}
}
}
Loading