Post

Replies

Boosts

Views

Activity

Reply to Swiftui list row with multiple buttons?
@eleanorsp8 Your solution works and should be marked as a solution. It seems like the default button style inside a List/Form adds its action to the the row’s on tap gesture listener behind the scenes and it makes sense in most cases — see Settings.app / General / Shut down for example. Plain button styles seems to prevent this behavior, and imho is a cleaner solution compare Text/Image components with .onTapGesture modifiers, from the accessibility and future-proof standpoint. Thanks!
Jul ’22