In this video, we will explore the difference between the old NavigationView vs NavigationStack announced at #WWDC22, and why this new API is astronomically better than the previous one.
------
Demos showed in the video:
Custom back button: https://gist.github.com/pitt500/25dd2...
popToRoot(): https://gist.github.com/pitt500/d6c85...
Override Navigation: https://gist.github.com/pitt500/c5204...
NavigationPath: https://gist.github.com/pitt500/8bc7e...
------
Resources:
https://developer.apple.com/documenta...)
https://developer.apple.com/documenta...
https://developer.apple.com/documenta...
https://developer.apple.com/wwdc22/10054
Pointfree's navigation alternative: https://github.com/pointfreeco/swiftu...
------
Videos related:
State and Binding: • SwiftUI's lifecycle, @State and @Bind...
any Keyword: • "any" Keyword and Existential types i...
where clauses: • Generics in Swift: Where Clauses (and...
Lazy Grids: • How to replicate Apple Watch home lay...
-----
Contact:
/ swiftandtips
/ swiftandtips
/ swiftandtips
Finally, ask me for a video you would like to see next 😄!
Credits:
Music by Wataboi from https://pixabay.com/
Video edited with Final Cut Pro