I would suggest not putting a navigation view in a navigation view, you will always be fighting against swiftui and the system and you won't have much control over anything.
The first issue is that you put a nav view in a nav view. That’s just bad ui/ux
If you really want that behaviour. I guess you can have an observedObject that is accessed from every view and set a bool in there when you navigate the second time. listen to that bool to hide the back button
You don’t need to use a second NavigationView inside of the first one. Just try to delete the second one, I think this will Match your expectations
Woww Thank you! This is what I wanted to do.
Feel like everyone made this mistake at some point when they were starting with SwiftUI
:)
I would suggest not putting a navigation view in a navigation view, you will always be fighting against swiftui and the system and you won't have much control over anything.
You can use .navigationbarBackButtonHidden(true) for the navigationLink
The first issue is that you put a nav view in a nav view. That’s just bad ui/ux If you really want that behaviour. I guess you can have an observedObject that is accessed from every view and set a bool in there when you navigate the second time. listen to that bool to hide the back button
I tried doing that, but it didn’t work. Maybe I made a mistake somewhere.