Skip to content

0.5.0

Latest

Choose a tag to compare

@sliemeobn sliemeobn released this 21 Jul 13:52
91fe191

🖼️ 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/.vite

Also, see the underlying elementary release notes:
https://github.com/elementary-swift/elementary/releases/tag/0.8.0

What's Changed

Full Changelog: 0.4.1...0.5.0