Is there any reason not to support NavigationLink that doesn't require Binding? #21
-
|
Hi, thank you for the wonderful library. As the title says, I have one question. That case seems to be common(For example, when enum holds ViewModel and uses NavigationLink), but if you have any reason not to support it, could you tell me? Also, I found that helper in the Point-Free video episode #167 exercises. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hey @kalupas226, due to how property wrappers work that behavior is already available. In the destination closure you can use the argument name without the Does that help? |
Beta Was this translation helpful? Give feedback.
Hey @kalupas226, due to how property wrappers work that behavior is already available. In the destination closure you can use the argument name without the
$to access the non-binding variable.Does that help?