SDWebImage / SDWebImageSVGCoder

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

[Solved] Port Adobe's SVG Native support? #39

Open dreampiggy opened 2 years ago

dreampiggy commented 2 years ago

There are Adobe's SVG-Native library, which backend CoreGraphics, so it should support iOS/macOS.

Anyone here can provide a SwiftPM/CocoaPods for support ?

See: https://github.com/adobe/svg-native-viewer

dreampiggy commented 2 years ago

I can use svg-native-viewer on iOS to render bitmap SVG image

which solve many of Apple's CoreSVG render issue, which previously can not solve at all :)

See:

sample buggy render SVG from our user's feedback:

  1. https://d4rgq65mqvxhk.cloudfront.net/public/gift_icons/officialGift%2378548ed1-9c95-4634-b355-ca8c2a53da4f.svg (https://github.com/SDWebImage/SDWebImageSVGCoder/issues/36) @koogawa
  2. https://s3-symbol-logo.tradingview.com/apple--big.svg (https://github.com/SDWebImage/SDWebImageSwiftUI/issues/220 ) @Pirajok168

image

dreampiggy commented 2 years ago

I'l open-source the new SDWebImageSVGNativeCoder now.

repo

https://github.com/SDWebImage/SDWebImageSVGNativeCoder

Which depends on the svg-native-viewer built for iOS/macOS/tvOS/watchOS port.

PS: Even you don't use SDWebImage, you can integrate that C++ library into your iOS project, and replace the old SVGKit or something :)