Files
David Furman 8631b5fbcc SyncUp tutorial fixes (#3139)
* Fixes for TestingSyncUpForm

* Typo, heirarchy -> hierarchy

* Typo: recursive -> recursively

* Typo: comes -> combines

* Further fixes for TestingSyncUpForm

* Typo: is -> to be

* Typo: add -> we added

* Typo: 3 -> 2

* Adding a note to avoid confusion

* Add more detail to step

* Remove stray whitespace causing a diff to incorrectly display

* Removed step documentation for unused code

* Typo: apart -> a part

* Fix App.Path Equatable conformance

* App -> AppReducer to avoid conflict with SwiftUI.App

* Fix code file link

* Typo: reducer -> reducers

* Add missing mock

* AppReducer -> AppFeature

* Standardize tutorial on `@Shared(.syncUps)`

* Fix mainactor placement

* Fix transcript param not compiling

* Add durationPerAttendee to be usable

* Add a minimal dismiss override to fit with the docs

* Fix commenting out of Tagged discussion

* Fix commenting out of TestingSyncUpDetail discussion

* Undo a whitespace change

* Partial revert of TestingSyncUpForm-02-code-0004.swift

* Undo unintentionally committed code

* Revert "Add missing mock"

This reverts commit 9672ecbd20.

* Revert "Fixes for TestingSyncUpForm"

This reverts commit 5bece14c2a.

* wip

---------

Co-authored-by: Stephen Celis <stephen@stephencelis.com>
2024-06-07 11:35:19 -07:00

30 lines
572 B
Swift

import ComposableArchitecture
import SwiftUI
@Reducer
struct AppFeature {
@Reducer
enum Path {
case detail(SyncUpDetail)
}
@ObservableState
struct State: Equatable {
var path = StackState<SyncUpDetail.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
}
}
}
}