Post

Replies

Boosts

Views

Activity

Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
in your code sample, replacing @Published var path = [Item]() with @Published var path = NavigationPath() fixes the issue
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
Tested on a real device and simulator. Please check you are using Xcode 16 beta 5 that released yesterday and iOS 18 beta 5. I'm using NavigationPath
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Aug ’24
Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
hey, can you please file a bug https://bugreport.apple.com so we can get a chance to get it fixed?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
The issue also occurs with Observable Macro, I've uploaded a new sample project implementing Observable macro.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24
Comment on SwiftUI : NavigationStack in new iOS 18 TabView pushes twice when path in parameter
Hello, Thank you very much for your reply and your help, I've tried the changes you suggest but the issue is still here and the views are still pushed twice. 😢 I will take a look at the Observable macro though. Thanks
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’24