Lazy-Pop-SwiftUI icon indicating copy to clipboard operation
Lazy-Pop-SwiftUI copied to clipboard

Broken in iOS 16.2

Open trevorwelshh opened this issue 2 years ago • 4 comments

With NavigationStack, once you navigate to a view, swipe back, the navigationlink no longer works. You can only use the link once and then it does not work. Same result for .navigationDestination

trevorwelshh avatar Jan 01 '23 00:01 trevorwelshh

I observed this as well.

ejbills avatar Jul 02 '23 05:07 ejbills

Doing my part in pointing others to getting this functionality working with navigation stacks.

This youtube video does exactly what is desired: https://youtu.be/4ceKPSTlL4I?si=sKpfhJU7jod_Be8e

Here is my implementation of it: https://github.com/ejbills/OpenArtemis/blob/main/OpenArtemis/Utilities/Navigation/NavigationStackWrapper.swift

Hope this helps others.

ejbills avatar Apr 10 '24 04:04 ejbills

@ejbills This is great! Should we update LazyPop to use your solution?

joehinkle11 avatar Apr 29 '24 20:04 joehinkle11

@joehinkle11 I think that would be great! I could submit a PR in a bit, or were you wanting to do it?

ejbills avatar Apr 29 '24 20:04 ejbills