Releases: swhitty/SwiftDraw
Release list
0.29.0 Template / AsyncSVGView
0.28.1 Fix support for em/ex units
What's Changed
- GitHub Actions build Swift 6.3 / Xcode 26.6 by @swhitty in #129
- support em/ex units in root SVG size by @swhitty in #131
Full Changelog: 0.28.0...0.28.1
0.28.0 Auto Generate SF Symbol Variants
What's Changed
- Fix CSS @media query parsing error in style elements by @rursache in #119
- Improve test coverage for CommandLine config and SVGCache by @rursache in #122
- Add regression test for SVG length unit conversion by @rursache in #121
- Support patternContentUnits=objectBoundingBox for pattern fills by @rursache in #120
- Normalize SF Symbol variant paths for interpolation compatibility by @rursache in #123
- Support clip-path in SF Symbol output by @rursache in #124
- Fix gradient coordinate percentage parsing by @KuroiDOC in #127
- Resolve percent dimensions against --size and improve error by @rursache in #126
- Auto-generate SF Symbol weight variants from stroke-width scaling by @rursache in #125
New Contributors
Full Changelog: 0.27.0...0.28.0
0.27.0 WOFF/WOFF 2 support
What's Changed
- @font-face with WOFF / WOFF2 support on macOS by @swhitty in #117 via swhitty/swift-woff2
- support dominant-baseline by @swhitty in #118
Full Changelog: 0.26.0...0.27.0
0.26.0
What's Changed
- Use CoreText run font fallback for glyph paths by @Weixi779 in #110
- Xcode 26.2 by @swhitty in #111
- Restore Android CI and fix linker issue by @swhitty in #112
- Fix elliptical arc rendering when radii need scaling by @tomasf in #114
- Windows support by @tomasf in #113
- SwiftUI formatter by @swhitty in #115
New Contributors
Full Changelog: 0.25.3...0.26.0
0.25.3 MacCatalyst Fix
What's Changed
- Fix for MacCatalyst by @DanielSincere in #106
- UIKit helpers for drawing SVGs by @DanielSincere in #107
Full Changelog: 0.25.1...0.25.3
0.25.1 SVGView.resizable()
Introduces a breaking change SVGView.resizable() #102
Previously (a bug) by default SVGView expanded to fill its container. Now the behaviour aligns with that of Image — by default it renders to its intrinsic content size (size of SVG)
// Renders at intrinsic SVG size
SVGView("circle.svg")Mark the view as resizable() to expand and fill available space:
// Fills available space, preserving aspect
SVGView("circle.svg")
.resizable()Swift 6.0+ compiler is now required
What's Changed
- Swift 6+ by @swhitty in #99
- SwiftDrawDOM -> Swift Testing by @swhitty in #100
- SVGCache by @swhitty in #101
- SVGView.resizable() by @swhitty in #103
- SVGView no supports earlier platforms versions (macOS 12 / iOS 13) by @swhitty in #104
Full Changelog: 0.24.0...0.25.0
0.25.0 SVGView.resizable()
Introduces a breaking change SVGView.resizable() #102
Previously (a bug) by default SVGView expanded to fill its container. Now the behaviour aligns with that of Image — by default it renders to its intrinsic content size (size of SVG)
// Renders at intrinsic SVG size
SVGView("circle.svg")Mark the view as resizable() to expand and fill available space:
// Fills available space, preserving aspect
SVGView("circle.svg")
.resizable()Swift 6.0+ compiler is now required
What's Changed
- Swift 6+ by @swhitty in #99
- SwiftDrawDOM -> Swift Testing by @swhitty in #100
- SVGCache by @swhitty in #101
- SVGView.resizable() by @swhitty in #103
- SVGView no supports earlier platforms versions (macOS 12 / iOS 13) by @swhitty in #104
Full Changelog: 0.24.0...0.25.0