Skip to content

Releases: swhitty/SwiftDraw

Closed Path Location Fix

03 Aug 23:03
8c70031

Choose a tag to compare

Last location of a closed path now correctly moves back to the start of the last unbroken segment.

currentColor

30 Jul 02:50
d072941

Choose a tag to compare

Adds support for the indirect currentColor keyword.

initWithSVGData

24 Jul 00:07
e5a809b

Choose a tag to compare

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

11 Jul 21:04
d214eef

Choose a tag to compare

Exports the UIImage / NSImage extensions to Objective-C

Objective-C Extensions

11 Jul 07:56
863707a

Choose a tag to compare

Exports the UIImage / NSImage extensions to Objective-C

Fix Images sized with Percentage

06 Mar 06:41
f8dc874

Choose a tag to compare

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

09 Jan 02:58
0bcdd35

Choose a tag to compare

display-p3 color is now correctly supported.

e.g.
fill-color="color(display-p3 0 1 1)"

Swift Code Generation

19 Jun 12:01
e558bda

Choose a tag to compare

Adds swift code generation to command line tool.

Swift 5.4

06 Jun 11:11
ca2363e

Choose a tag to compare

Adds public method to create Image from Data

Swift 5.4

06 Jun 04:54
e187cbc

Choose a tag to compare

Fixes iOS compatibility in Package.swift
Binary is built with Xcode 12.5