Skip to content

0.2.0

Choose a tag to compare

@1amageek 1amageek released this 17 Jun 00:33
· 19 commits to main since this release

Adds Xcode preview support for SwiftHTML.

Area Included
Preview New SwiftHTMLPreview product with #HTMLPreview, HTMLPreviewHost, HTMLPreviewRenderer, HTMLPreviewConfiguration, and HTMLPreviewViewport.
Macro New SwiftHTMLPreviewMacros target that expands #HTMLPreview directly to SwiftUI #Preview while forwarding preview traits.
Documentation README and DocC coverage for preview usage, configuration, and build behavior.
Tests Preview renderer tests, compile smoke tests, and macro expansion tests.
Tooling Swift package tools version remains Swift 6.3.

Validation:

Command Result
swift build --product SwiftHTML Passed
swift build --product SwiftHTMLPreview Passed
xcodebuild test -scheme swift-html-Package -destination 'platform=macOS' -only-testing:SwiftHTMLTests -only-testing:SwiftHTMLPreviewTests Passed