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 😄!
Смотрите видео Handling Optional States in The Composable Architecture онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Swift and Tips 13 Январь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 2,158 раз и оно понравилось 28 людям.