rebeloper / NavigationKit

🧭 SwiftUI navigation done right
174 stars 15 forks source link

Using NavigationKit along with other environmental objects and @Published variables #6

Open Broker89 opened 3 years ago

Broker89 commented 3 years ago

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?

ch05enOne commented 3 years ago

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

Broker89 commented 3 years ago

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

ch05enOne commented 3 years ago

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

Broker89 commented 3 years ago

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