Roast topics
Find topics
Roast it!
Roast topics
Find topics
Find it!
Login
From:
Ole Begemann
(Uncensored)
subscribe
clipped() doesn’t affect hit testing – Ole Begemann
https://oleb.net/2022/clipped-hit-testing/
links
backlinks
The clipped() modifier in SwiftUI doesn’t limit hit testing to the clipping region. The clipped view can still receive taps/clicks outside the visible area. Add .contentShape(Rectangle()) to change this behavior.