Modifiers
OnTap
Make any view tappable.
OnTap makes any non-button view tappable. Applying it to a Button
panics, because a Button already carries a handler through its
constructor.
The handler runs on the UI goroutine. For screen reader and keyboard
parity, a tappable view is also marked with RoleButton when you pair it
with AccessibilityRole; the framework does not set that automatically.
Use NavLink when the only purpose of the tap is to push a navigation
destination; it wires the tap, the role, and the label in one call.