Releases: swhitty/SwiftDraw
Releases · swhitty/SwiftDraw
Closed Path Location Fix
Last location of a closed path now correctly moves back to the start of the last unbroken segment.
currentColor
Adds support for the indirect currentColor
keyword.
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.