mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-24 12:14:25 +01:00
33 lines
631 B
Swift
33 lines
631 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 path(StackActionOf<Path>)
|
|
case syncUpsList(SyncUpsList.Action)
|
|
}
|
|
var body: some ReducerOf<Self> {
|
|
Scope(state: \.syncUpsList, action: \.syncUpsList) {
|
|
SyncUpsList()
|
|
}
|
|
Reduce { state, action in
|
|
switch action {
|
|
case .path:
|
|
return .none
|
|
case .syncUpsList:
|
|
return .none
|
|
}
|
|
}
|
|
}
|
|
}
|