The optional states are really useful for situations where your state is not fully required all the time, like modal views.
This is part 5 of TCA series, check out the previous videos:
The basics: • The basics of The Composable Architec...
Scope, Combine, and Pullback Operators: • Composition in TCA: Scope, Combine an...
ForEachStore & async requests in TCA: • ForEachStore and async requests to ma...
Bindings and Modals in TCA: • How to open a modal view in TCA? (Deb...
Bonus:
Extended Intro (Conference talk): • The Composable Architecture - Confere...
The demo shown in this video: https://drive.google.com/file/d/1mNeO...
Full demo completed:
https://github.com/pitt500/OnlineStor...
-----
Content:
0:00 - Intro
0:28 - CartItem and CartList setup
9:15 - Optional States
------
Resources:
https://github.com/pointfreeco/swift-...
https://www.pointfree.co/collections/...
------
Videos Related:
NavigationStack: • NavigationStack | This is how SwiftUI...
Binding objects in SwiftUI: • SwiftUI's lifecycle, @State and @Bind...
Keypaths: • The Anatomy of a Key Path
Generics: • Generics
Async/Await: • Async/Await in Swift | Comparison vs ...
-----
Contact:
/ swiftandtips
/ swiftandtips
/ swiftandtips
Finally, ask me for a video you would like to see next 😄!
Watch video Handling Optional States in The Composable Architecture online without registration, duration hours minute second in high quality. This video was added by user Swift and Tips 13 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 2,158 once and liked it 28 people.