SDWebImage / SDWebImageSVGCoder

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

Add support to easy export("encoding") the SVG data of `SVGKImage` presentation #4

Closed dreampiggy closed 5 years ago

dreampiggy commented 5 years ago

PR description

See #1

This PR introduce the feature for encoding ("export") a SDSVGImage wrapper, which contains a SVGKImage, into the original SVG raw data.

You can just use:

UIImage *image; // This image must be created by SDWebImage framework but not others
NSData *svgData = [image sd_imageDataAsFormat:SDImageFormatSVG];