Releases: swhitty/SwiftDraw
Releases · swhitty/SwiftDraw
initWithSVGData
Adds convenience initialisers to platform images;
UIImage(svgData: Data)
UIImage(contentsOfSVGFile path: String)
NSImage(svgData: Data)
NSImage(contentsOfSVGFile path: String)
And exports to Objective-C
- (instancetype) initWithSVGData: (NSData *)
- (instancetype) initWithContentsOfSVGFile: (NSString *)
Objective-C Extensions
Exports the UIImage
/ NSImage
extensions to Objective-C
Objective-C Extensions
Exports the UIImage
/ NSImage
extensions to Objective-C
Fix Images sized with Percentage
SVG images that have a size in % unit failed to size correctly.
<svg width="100%" height="100%" viewBox="0 0 500 500">
Width should be 500px not 100px.
P3 Color
Swift Code Generation
Adds swift code generation to command line tool.
Swift 5.4
Swift 5.4
Gradient UserSpaceOnUse
Adds support for gradients that are define within userSpaceOnUse
. Previously objectBoundingBox
was only supported.
Small fix for Paths that begin with M ## ## ## ##
whereby SVGs should interpret this as M ## ## L ## ##
.
Referenced Gradients
Includes localised fix for referenced gradients