SDWebImageSwiftUI icon indicating copy to clipboard operation
SDWebImageSwiftUI copied to clipboard

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

Open surayashivji opened this issue 1 year ago • 0 comments

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!

surayashivji avatar Dec 08 '22 21:12 surayashivji