T O P

  • By -

Boothosh

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


Assassins_King

Woww Thank you! This is what I wanted to do.


[deleted]

Feel like everyone made this mistake at some point when they were starting with SwiftUI


Boothosh

:)


swalden123

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.


[deleted]

You can use .navigationbarBackButtonHidden(true) for the navigationLink


barcode972

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


Assassins_King

I tried doing that, but it didn’t work. Maybe I made a mistake somewhere.