Closed nikhil-kumar-meesho closed 3 months ago
var body: some View { AnimatedImage(url: viewData.viewImageUrlString) .resizable() .scaledToFit() .cornerRadius(8) }
I am using this code to add a corner radius to the image but the corner radius does not look smooth. It works in the case of WebImage.
This is the UIKitRepresentable view. You can just use the clipShape or UIView.maskToBounds to force the render tree to contains the clip
UIView.maskToBounds
clip
Please try again with version 3.1.0
var body: some View { AnimatedImage(url: viewData.viewImageUrlString) .resizable() .scaledToFit() .cornerRadius(8) }
I am using this code to add a corner radius to the image but the corner radius does not look smooth. It works in the case of WebImage.