🖼️ SVG support 🖼️
This release adds support for dynamic SVG views.
@View
struct MySVG {
var showCircle: Bool
var body: some View {
SVG.svg(.width(200), .height(200)) {
if showCircle {
SVG.circle(
.cx(100),
.cy(100),
.r(100)
)
}
}
}
}⚠️ JavaScriptKit runtime update
When updating an existing project, the bundled BrowserRuntime JS package (JavaScriptKit runtime + BridgeJS) might need reinstalling, and the Vite cache for dev builds may need to be cleared.
# for existing projects, after resolving the updated swift package dependencies
# install/update the local BrowserRuntime package
npm install
# clear vite dev build cache
rm -rf node_modules/.viteAlso, see the underlying elementary release notes:
https://github.com/elementary-swift/elementary/releases/tag/0.8.0
What's Changed
- add support for SVG by @sliemeobn in #112
Full Changelog: 0.4.1...0.5.0