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

svg image renders as a mask #11

Open
randarnold opened this issue Mar 8, 2024 · 0 comments
Open

svg image renders as a mask #11

randarnold opened this issue Mar 8, 2024 · 0 comments

Comments

@randarnold
Copy link

Using v0.2.0 the image I'm trying to display shows up as a black mask instead of full color.

What I get
Screenshot 2024-03-08 at 10 07 03

What I expect
svg image

I registered the coder

 // register svg coder
let SVGCoder = SDImageSVGNativeCoder.shared
SDImageCodersManager.shared.addCoder(SVGCoder)

Rendered inside a UIButton

let bitmapSize = button.frame.size
button.sd_setImage(with: imageURL, for: .normal, placeholderImage: nil, options: [.highPriority], context: [.imageThumbnailPixelSize: bitmapSize], progress: nil)

Any ideas?

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