SDWebImageSVGCoder icon indicating copy to clipboard operation
SDWebImageSVGCoder copied to clipboard

[Solved] Port Adobe's SVG Native support?

Open dreampiggy opened this issue 3 years ago • 2 comments

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 avatar Jul 25 '22 14:07 dreampiggy

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 avatar Aug 03 '22 09:08 dreampiggy

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 :)

dreampiggy avatar Aug 03 '22 09:08 dreampiggy