The markdown parsing is broken/disabled for release notes. Sorry about that, I'm chasing the source of a crash that's been bringing this website down for the last couple of days.
Swift 5.7 (iOS12+, macOS 10.14+)
23 weeks ago
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+)
23 weeks ago
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
25 weeks ago
Bug fix release that fixes a few issues
- Only wind `.nonZero` paths that are filled https://github.com/swhitty/SwiftDraw/pull/31
- Correctly pad 3 digit hex colors https://github.com/swhitty/SwiftDraw/issues/24
- Flip base64 images https://github.com/swhitty/SwiftDraw/issues/26
- Preserve all SFSymbol classes https://github.com/swhitty/SwiftDraw/issues/27
Fixes typo https://github.com/swhitty/SwiftDraw/pull/23. ππ» thanks @2n
SFSymbol Multicolor
42 weeks ago
Includes changes
- SFSymbols now include[ support for multicolour layers](https://github.com/swhitty/SwiftDraw/issues/19) by preserving specific CSS selectors. Thank you @tinder-darraghburke
- Adds [fix](https://github.com/swhitty/SwiftDraw/pull/20) symbols with greater width than height. Thank you @rcancro.
- Samples is now Samples.bundle
```
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
47 weeks ago
Includes changes
- SFSymbols now include[ support for multicolour layers](https://github.com/swhitty/SwiftDraw/issues/19) by preserving specific CSS selectors. Thank you @tinder-darraghburke
- Adds [fix](https://github.com/swhitty/SwiftDraw/pull/20) symbols with greater width than height. Thank you @rcancro.
```
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
```
Adds optional `--output` to Command-line tool. If provided this path is used, otherwise a suffix is automatically appended to input path.
Fixes bugs
- `UIImage` was scaled twice https://github.com/swhitty/SwiftDraw/issues/12.
- `fill-rule` was defaulting to `evenodd` when it should be `nonzero`
- macCatalyst support
- Better support for stroke gradients https://github.com/swhitty/SwiftDraw/issues/17
```
swiftdraw, version 0.13.2
copyright (c) 2022 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
```
Adds optional `--output` to Command-line tool. If provided this path is used, otherwise a suffix is automatically appended to input path.
Fixes bugs
- `UIImage` was scaled twice https://github.com/swhitty/SwiftDraw/issues/12.
- `fill-rule` was defaulting to `evenodd` when it should be `nonzero`
- macCatalyst support
```
swiftdraw, version 0.13.2
copyright (c) 2022 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
```
Adds optional `--output` to Command-line tool. If provided this path is used, otherwise a suffix is automatically appended to input path.
Fixes bugs
- `UIImage` was scaled twice https://github.com/swhitty/SwiftDraw/issues/12.
- `fill-rule` was defaulting to `evenodd` when it should be `nonzero`
```
swiftdraw, version 0.13.1
copyright (c) 2022 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
```
Renames `SwiftDraw.Image` -> `SwiftDraw.SVG` avoiding name collisions with `SwiftUI.Image`.
Updates command line tool:
- officially support SF Symbol creation using `--format sfsymbol`
- add ability to crop or align images with `--insets 10,0,0,10`
- adds AppKit support with `--format swift --api appkit`
- fixes PDFs rendering with unsupported transparency
```
copyright (c) 2022 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
--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
```