Skip to content

svg image renders as a mask #11

@randarnold

Description

@randarnold

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions