You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thank you for taking the time to create this library. I have been reading through the documentation however, it's not clear to me how to achieve an example of using a List view type that has tappable rows (that aren't buttons). Normally, using a NavigationLink inside of a List type affords some extra functionality such as highlighting the row, selection and having the chevron icon to indicate that the row is tappable and will push the next screen.
Looking at your examples, there are Button view types nested in a List to achieve this functionality. I might be missing something if you can clarify this use case for me.
The text was updated successfully, but these errors were encountered:
Hi @silverfoxlabs, thanks for raising this issue. Sadly NavigationLink doesn't offer a way to override its action, and Button doesn't offer a way to style it like a NavigationLink, so the best I can offer are workarounds.
The following gets you most of the styling, but the row background selection state doesn't persist:
There's some interesting discussion of these shortcomings and possible workarounds in this TCA discussion, including this gist from @tgrapperon which offers a more faithful recreation of NavigationLink's list style.
I'd be interested to hear how you find these workarounds and if you think I should add something like that to this library.
Hi, thank you for taking the time to create this library. I have been reading through the documentation however, it's not clear to me how to achieve an example of using a
List
view type that has tappable rows (that aren't buttons). Normally, using aNavigationLink
inside of aList
type affords some extra functionality such as highlighting the row, selection and having the chevron icon to indicate that the row is tappable and will push the next screen.Looking at your examples, there are
Button
view types nested in aList
to achieve this functionality. I might be missing something if you can clarify this use case for me.The text was updated successfully, but these errors were encountered: