Post

Replies

Boosts

Views

Activity

Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
@sjb_s Thank you for your code. I found the reason for the issue. If I embed navigationDestination into the View extension (as it is in my real app), then the issue can be reproduced. extension View { func withAppRouter() -> some View { navigationDestination(for: Item.self) { item in DetailView(item: item) } } } I have a centralised routing system and a single extension where all routes are located. @DTS Engineer can you help here please?
Aug ’24
Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
@brebispanique it doesn't fix the issue, unfortunately, but changes it. In my code sample, it works well with NavigationPath only if you push the next screen the first time. But please press the Back button and then press "Next" again. Everything seems to be ok with animation but now you will need to press the Back button two times to return back to the initial screen. Please press "Next" again after that. You will need to press the Back button three times to return back to the initial screen.
Aug ’24