Make a Button in a SwiftUI List Row Interactive

If you have a subview of a row in SwiftUI which is a button or contains a button, you may run into difficulty getting it to respond to touches. The row itself may receive the touch, instead of the button itself.

For example, if you embed this stepper view into a row, the + and – buttons may not react.

To fix this, you can set a buttonStyle of .plain on the buttons.

Button()
    .buttonStyle(.plain)