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

WebImage image from URL renders a white background even though the image is transparent #246

Open
surayashivji opened this issue Dec 8, 2022 · 0 comments

Comments

@surayashivji
Copy link

surayashivji commented Dec 8, 2022

Hi! I'm rendering a WebImage from a URL.

When I pass the URL, the image that renders in my Swift view has a white background even though the image itself is transparent. Does WebImage render transparent PNGs or add a white background?

    WebImage(url: URL(string: "<URL_WITH_IMAGE>")))
  .resizable()
  .scaledToFit()
  .frame(width: poseWidth, height: poseHeight)

Thanks!

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

No branches or pull requests

1 participant