3 Crucial Things to Know About NavigationLink in SwiftUI
3 Crucial Things to Know About NavigationLink in SwiftUI

Photo by Dan Chung on Unsplash.

Navigation is an essential component of any application, and with SwiftUI, Apple introduced NavigationLink and NavigationView to allow us to create routers with ease.

However, there were a few hiccups in the first iteration of SwiftUI. Specifically, destination views inside a navigation link were getting loaded immediately. But now in iOS 14, we have lazy views — namely LazyHStack and LazyVStack — to make our lives easier.
['Anupam Chugh']
['Swift', 'Mobile', 'Swiftui', 'iOS', 'Programming']