Reading List
clipped() Doesn’t Affect Hit Testing from Michael Tsai RSS feed.
clipped() Doesn’t Affect Hit Testing
Ole Begemann: The clipped() modifier in SwiftUI clips a view to its bounds, hiding any out-of-bounds content. […] When you run this code, you’ll discover that the button isn’t tappable at all. This is because the (unclipped) square, despite not being fully visible, obscures the button and “steals” all taps. […] The clipped() modifier doesn’t […]