NavigationKit icon indicating copy to clipboard operation
NavigationKit copied to clipboard

Using NavigationKit along with other environmental objects and @Published variables

Open Broker89 opened this issue 4 years ago • 4 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 avatar Jan 19 '21 13:01 Broker89

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

ch05enOne avatar Apr 13 '21 02:04 ch05enOne

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 avatar Apr 13 '21 08:04 Broker89

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

ch05enOne avatar Apr 13 '21 15:04 ch05enOne

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

Broker89 avatar Apr 13 '21 15:04 Broker89