Skip to content

Releases: swhitty/SwiftDraw

0.18.2 Fix clip-path transforms

11 Feb 09:36
feb12e3

Choose a tag to compare

Fixes transform when used within clip-path #61

0.18.1 Fix display: block

21 Nov 05:50
65d5db7

Choose a tag to compare

Adds support for:

  • display: block #53
  • Public init for SVG.Insets #56

🙏🏻 @alpennec

0.18.0 Swift 6 compiler support

13 Oct 22:52
fb79a0a

Choose a tag to compare

Adds support for Swift 6 compiler

Fixes rendering issues:

Swift 5.7 (iOS13+, macOS 10.15+)

24 May 21:44
a5c680f

Choose a tag to compare

Removes support for older OS and Swift versions.

SwiftDraw now supports:

  • Swift 5.7+
  • iOS 13+
  • macOS 10.15+

Fixes issue #40 where base64 images were not sized correctly.

Swift 5.7 (iOS12+, macOS 10.14+)

15 Nov 07:34
e28ad94

Choose a tag to compare

Removes support for older OS and Swift versions.

SwiftDraw now supports:

  • Swift 5.7+
  • iOS 12+
  • macOS 10.14+

Fixes issue #32 where some SFSymbols would not correctly wind evenodd paths.

Swift 5.7 (iOS12+, macOS 10.14+)

14 Nov 11:50
bd99ada

Choose a tag to compare

Removes support for older OS and Swift versions.

SwiftDraw now supports:

  • Swift 5.7+
  • iOS 12+
  • macOS 10.14+

Fixes issue #32 where some SFSymbols would not correctly wind evenodd paths.

Preserve all SFSymbol classes

30 Oct 22:02
73aef36

Choose a tag to compare

Bug fix release that fixes a few issues

  • Only wind .nonZero paths that are filled #31
  • Correctly pad 3 digit hex colors #24
  • Flip base64 images #26
  • Preserve all SFSymbol classes #27

Fix Typo

18 Aug 23:25
3526a94

Choose a tag to compare

Fixes typo #23. 🙏🏻 thanks @2n

SFSymbol Multicolor

02 Jul 06:13
6dcda6c

Choose a tag to compare

Includes changes

swiftdraw, version 0.14.1
copyright (c) 2023 Simon Whitty

usage: swiftdraw <file.svg> [--format png | pdf | jpeg | swift | sfsymbol] [--size wxh] [--scale 1x | 2x | 3x]

<file> svg file to be processed

Options:
 --format      format to output image: png | pdf | jpeg | swift | sfsymbol
 --size        size of output image: 100x200
 --scale       scale of output image: 1x | 2x | 3x
 --insets      crop inset of output image: top,left,bottom,right
 --precision   maximum number of decimal places
 --output      optional path of output file

 --hideUnsupportedFilters   hide elements with unsupported filters.

Available keys for --format swift:
 --api                api of generated code:  appkit | uikit

Available keys for --format sfymbol:
 --insets             alignment of regular variant: top,left,bottom,right | auto
 --ultralight         svg file of ultralight variant
 --ultralightInsets   alignment of ultralight variant: top,left,bottom,right | auto
 --black              svg file of black variant
 --blackInsets        alignment of black variant: top,left,bottom,right | auto

SFSymbol Multicolor

27 May 04:42
6b5471b

Choose a tag to compare

Includes changes

swiftdraw, version 0.14.0
copyright (c) 2023 Simon Whitty

usage: swiftdraw <file.svg> [--format png | pdf | jpeg | swift | sfsymbol] [--size wxh] [--scale 1x | 2x | 3x]

<file> svg file to be processed

Options:
 --format      format to output image: png | pdf | jpeg | swift | sfsymbol
 --size        size of output image: 100x200
 --scale       scale of output image: 1x | 2x | 3x
 --insets      crop inset of output image: top,left,bottom,right
 --precision   maximum number of decimal places
 --output      optional path of output file

 --hideUnsupportedFilters   hide elements with unsupported filters.

Available keys for --format swift:
 --api                api of generated code:  appkit | uikit

Available keys for --format sfymbol:
 --insets             alignment of regular variant: top,left,bottom,right | auto
 --ultralight         svg file of ultralight variant
 --ultralightInsets   alignment of ultralight variant: top,left,bottom,right | auto
 --black              svg file of black variant
 --blackInsets        alignment of black variant: top,left,bottom,right | auto