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