rebeloper / NavigationKit

🧭 SwiftUI navigation done right

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using NavigationKit along with other environmental objects and @Published variables

Broker89 opened this issue · comments

Hi Alex,

First of all, your NavigationKit looks super awesome, I was really happy when I found your framework.

However in my app I'm using another environmental object with @published variables. As soon as I access them e.g. via an .onAppear the push from the Navigationkit is not working anymore. Do you have any idea why that could be the case?

@Broker89 Have you found the solution to this issue. It's been driving me crazy

Unfortunately no but I managed to get the native NavigationLink to perform what I needed using the tag and selection parameters e.g. https://www.hackingwithswift.com/articles/216/complete-guide-to-navigationview-in-swiftui to control the behaviour better

@Broker89 did you completely scrap this library and resort to NavigationView or can I use NavigationKit with this solution

I abandoned this library and build my own Navigation helper with the approach from hacking with swift