Questions tagged [navigationpath]

5 questions
5
votes
0 answers

SwiftUI iOS 16 NavigationPath inside TabView Warning: NavigationAuthority

I have a TabView and each Tab has it's own NavigationPath which I am handling inside an ObservableObject. @MainActor final class Router: ObservableObject { @Published var homeNavigationPath = NavigationPath() @Published var…
Dan
  • 543
  • 2
  • 13
1
vote
0 answers

A navigationDestination for “app.Type" was declared earlier on the stack

I understand what this means conceptually, but I don't understand why I'm not navigating to my ThirdView in response to it. I'm trying to navigate two levels into the NavigationStack. But I keep pushing the second view on top of itself. Here's my…
0
votes
0 answers

How can i get my args.field from my activity to my viewmodel

I want to use my args.breweryName from my reviewActivity in my reviewViewModel but i don't know what's the best way to do it. I have tried using savestatehandle but i'm not experienced with that. I'm new to programming with kotlin so i would…
0
votes
1 answer

Xcode 14 NavigationPath – two views pushed onto nav stack when multiple links in form section

Create new SwiftUI project Replace ContentView with the code below Tap either link. Both views are pushed onto the nav stack class ContentViewModel: ObservableObject { @Published var navigationPath = NavigationPath() } struct ContentView:…
Aaron Bratcher
  • 6,051
  • 2
  • 39
  • 70
-1
votes
0 answers

NavigationPath and navigationDestination with custom back button fails on iOS 17 BETA

NOTE: I have reported it to apple. However, the question is, "Is there a workaround/fix for this?" My concern is this will be missed by apple and I want to have a workaround ready if Apple does NOT fix it for their final release. Using the new…