SDWebImage / SDWebImageSVGCoder

A SVG coder plugin for SDWebImage, using Apple's built-in framework
MIT License
103 stars 34 forks source link

Could not display SVG image #30

Closed ASAbdellatif closed 2 years ago

ASAbdellatif commented 3 years ago

I want to display SVG image from URL, I am using SDWebImageSVGCoder but it could not display my image, but when I change the image with another one it is displayed correctly.

let svgURL = URL(string: "https://www.sharjahairport.ae/social/svg/ABY.svg")! cell.imgView.sdsetImage(with: svgURL) { (image, , , ) in if let img = image { cell.imgView.image = img } }

dreampiggy commented 3 years ago

Seems Apple's CoreSVG rendering engine does not support SVG pattern tag.

dreampiggy commented 2 years ago

Please have a try with the new Adobe-SVG-Native based coder implementation:

https://github.com/SDWebImage/SDWebImageSVGNativeCoder

Feedback are welcomed