clipped() doesn’t affect hit testing
['Ole Begemann']
Ole Begemann
But note that clipping doesn’t affect hit testing; the clipped view can still receive taps/clicks outside the visible area. The button isn’t tappable because it’s covered by the clipped view with respect to hit testing. By adding .contentShape(Rectangle()) to the 100×100 frame, we limit hit testing to that area, making the button tappable again: