Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corner Radius does not work properly in case of AnimatedImage #317

Closed
nikhil-kumar-meesho opened this issue May 24, 2024 · 2 comments · Fixed by #324
Closed

Corner Radius does not work properly in case of AnimatedImage #317

nikhil-kumar-meesho opened this issue May 24, 2024 · 2 comments · Fixed by #324

Comments

@nikhil-kumar-meesho
Copy link

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.

Screenshot 2024-05-24 at 12 31 50 PM
@dreampiggy
Copy link
Collaborator

dreampiggy commented May 24, 2024

This is the UIKitRepresentable view. You can just use the clipShape or UIView.maskToBounds to force the render tree to contains the clip

@dreampiggy
Copy link
Collaborator

Please try again with version 3.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants