Skip to content

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

Description

@Broker89

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?

Activity

  1. changed the title [-]Using NavigationKit along with other envi[/-] [+]Using NavigationKit along with other environmental variables[/+] on Jan 19, 2021
  2. changed the title [-]Using NavigationKit along with other environmental variables[/-] [+]Using NavigationKit along with other environmental objects and @Published variables[/+] on Jan 19, 2021
  3. ch05enOne commented on Apr 13, 2021

    @ch05enOne

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

  4. Broker89 commented on Apr 13, 2021

    @Broker89
    Author

    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

  5. ch05enOne commented on Apr 13, 2021

    @ch05enOne

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

  6. Broker89 commented on Apr 13, 2021

    @Broker89
    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions