NavigationLink is not call onNavigate when the value is true. #101
Replies: 3 comments
-
Hi @OguzYuuksel, thank you for the report. Can you create a small repro project that demonstrates the problem? We are a little busy today, so it would be very helpful. Thanks! |
Beta Was this translation helpful? Give feedback.
-
Hello @mbrandonw, please see the attached zip. I guess this is a |
Beta Was this translation helpful? Give feedback.
-
Hi @OguzYuuksel, sorry for the late response, but I just got around to checking this out. This is actually the expected behavior. I am going to convert this to a discussion in case you want to discuss it more, but for now it is not an issue with the library. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Describe the bug
onNavigate
is not called when the screen is activated, so it never passestrue
with the following initializerNavigationLink.init(unwrapping:,onNavigate:,destination:,label:)
To Reproduce
SwiftUINavigationTest.zip
Expected behavior
onNavigate should be called when isActive is 'true' too.
Environment
Beta Was this translation helpful? Give feedback.
All reactions