swiftui navigationStack initialising path with onAppear not displaying correct screen
I’m new to swiftui development. Trying to build my first real app! I’m still tackling navigation and authentication where I’m trying to display the correct screens whether the authState is unauthenticated or authenticated. however, my app isn’t launching on the correct screen depending on the state it just crashes with no error message given.
How to perform an action when the NavigationLink label is tapped in SwiftUI?
In this code when i tap on the ‘tap here’ NavigationLink it is not navigating to a new page, it get stuck in onTapGesture and just incrementing the value on tap.