nalexn / ViewInspector

Runtime introspection and unit testing of SwiftUI views
MIT License
2.09k stars 145 forks source link

Add NavigationLink value() attribute #286

Closed andy-vanwagoner-jn closed 5 months ago

andy-vanwagoner-jn commented 6 months ago

Adds a func to get the value of NavigationLink(value:label:). This allows testing to assert a particular link navigates to the correct destination value.

nalexn commented 5 months ago

Thank you @andy-vanwagoner-jn , great job as always