Skip to content

0.25.1 SVGView.resizable()

Latest
Compare
Choose a tag to compare
@swhitty swhitty released this 07 Sep 22:10
· 4 commits to main since this release
f97bd06

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

Full Changelog: 0.24.0...0.25.0