Skip to content

Releases: swhitty/SwiftDraw

initWithSVGData

24 Jul 00:07
e5a809b
Compare
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
Compare
Choose a tag to compare

Exports the UIImage / NSImage extensions to Objective-C

Objective-C Extensions

11 Jul 07:56
863707a
Compare
Choose a tag to compare

Exports the UIImage / NSImage extensions to Objective-C

Fix Images sized with Percentage

06 Mar 06:41
f8dc874
Compare
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
Compare
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
Compare
Choose a tag to compare

Adds swift code generation to command line tool.

Swift 5.4

06 Jun 11:11
ca2363e
Compare
Choose a tag to compare

Adds public method to create Image from Data

Swift 5.4

06 Jun 04:54
e187cbc
Compare
Choose a tag to compare

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

Gradient UserSpaceOnUse

12 Jul 01:29
3595556
Compare
Choose a tag to compare

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

27 Jun 02:24
0ee91a9
Compare
Choose a tag to compare

Includes localised fix for referenced gradients