mirror of
https://github.com/pointfreeco/swift-composable-architecture.git
synced 2025-12-20 09:11:33 +01:00
* Swift 6 updates
- Soft-deprecate `_SynthesizedConformance` now that Xcode 16 has fixed
this bug.
- Update docs accordingly.
- Document Xcode 16 macro gotcha around custom build configuration
names.
* wip
31 lines
610 B
Swift
31 lines
610 B
Swift
import ComposableArchitecture
|
|
import SwiftUI
|
|
|
|
@Reducer
|
|
struct AppFeature {
|
|
@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
|
|
}
|
|
}
|
|
}
|
|
}
|
|
extension AppFeature.Path.State: Equatable {}
|