This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
The clipped() modifier in SwiftUI clips a view to its bounds, hiding any out-of-bounds content. But note that clipping doesn’t affect hit testing; the clipped view can still receive taps/clicks outside the visible area. I tested this on iOS 16.1 and macOS 13.0. Example Here’s a 300×300 square, which we then constrain to a 100×100 frame. I also added a border around the outer frame to visualize the…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.