Experimenting with SwiftUI (Xcode 11.0 beta 2), I try to fill a View with an image :
Image("large")
.resizable()
.aspectRatio(contentMode: .fill)
.frame(width: 80, height: 80, alignment: .center)
.border(Color.black)
This renders like so :
I would like to apply something similar to UIView.clipsToBounds
so the image is clipped and the parts outside of the box are not visible.