SDWebImage / SDWebImageSwiftUI

SwiftUI Image loading and Animation framework powered by SDWebImage
https://sdwebimage.github.io/SDWebImageSwiftUI
MIT License
2.1k stars 216 forks source link

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

Open surayashivji opened 1 year ago

surayashivji commented 1 year ago

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!