Files
swift-composable-architectu…/Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/07-SyncUpDetailNavigation/SyncUpDetailNavigation-01-code-0006.swift
Brandon Williams dd145a13c5 Fix focus in tutorial (#3072)
* Fix focus logic in tutorial.

* wip

* wip

* wip

* wip

* remove extra alert enum

* wip
2024-05-13 14:07:39 -07:00

30 lines
557 B
Swift

import ComposableArchitecture
import SwiftUI
@Reducer
struct App {
@Reducer
enum Path {
case detail(SyncUpDetail)
}
@ObservableState
struct State: Equatable {
var path = StackState<Path.State>()
var syncUpsList = SyncUpsList.State()
}
enum Action {
case syncUpsList(SyncUpsList.Action)
}
var body: some ReducerOf<Self> {
Scope(state: \.syncUpsList, action: \.syncUpsList) {
SyncUpsList()
}
Reduce { state, action in
switch action {
case .syncUpsList:
return .none
}
}
}
}