Post

Replies

Boosts

Views

Activity

Reply to SwiftUI NavigationLink pops out by itself
Same problem here. iOS 14.5 messed up the whole app navigation und now views are immediately popped upon being pushed so the App jumps around and is unusable. I fear this behavior will find its way into the release version as it is also present in the latest release candidate. Update: Found a fix which is really weird but seems to work until the real cause is found: In the pushing view that contains the NavigationLinks, add the following meaningless Navigationlink next to your existing ones. So far it seems the problem only occurs if you have more than one NavigationLink in a view and I am sure its related to the mentioned new behavior of 14.5 Add this to your view containing your existing NavigationLinks: swift NavigationLink(destination: EmptyView()) {     EmptyView() }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’21
Reply to SwiftUI NavigationLink pops out by itself
We updated our whole app and placed the empty NavigationLink in every view which already had a NavigationLink and it solved the problem for us :) Sad thing is that with the 14.5 being released, we will have to keep that thing in place for ages now even if 14.6 may solve it :/
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Apr ’21