Repository navigation
Releases
Releases · haplollc/Kiln
Kiln 0.2.1
- Gradients and other non-color styles in
Text(...).foregroundStyle(...)now render (they were dropped on the Text path). - New example: a two-player chess game with legal moves, check and checkmate, castling and promotion, sliding pieces and a dark UI (
Examples/Apps/Chess.swift). Kiln Lab plays Scholar's mate with it natively and in Kiln; every step matches.
Kiln 0.2.0
Kiln's second engine is now the default for Kiln.run and Kiln.validate.
- Real Swift semantics: structs as values, classes (
ObservableObject,@Observable), enums with payloads and pattern matching, closures that capture by reference,do/catch, extensions. - Every interpreted
Viewis a real SwiftUI view that owns its@State.List,Form,Section,Picker,Stepper,TextField, sheets, navigation, tabs, search, toolbars, timers, Swift Charts and customShapes render with the real controls. - Networking:
URLSession(data(from:),dataTask),URLComponents, andJSONDecoderinto your ownDecodabletypes. Kiln.swiftSource(fromMarkdown:)andswiftSource(running:inReply:)run the code in a chat reply, even when a model splits one app across blocks.Kiln.randomSeed,KilnRandomand the-KilnRandomSeed Nlaunch argument make runs repeatable.- Kiln Lab (
Lab/,Tools/iterate.sh) runs each example natively and in Kiln under the same UI test; all six example apps match native on every step.
Code written for the original interpreter's guided dialect (GameCanvas, .onTick, Storage) still runs on it; Kiln.engine = .legacy forces it everywhere.
Kiln 0.1.0
Initial public release. Carved out of Haplo's in-app live-preview engine.
What's included
Kiln.run(_:)andKilnView(code:)public API- Full Swift/SwiftUI interpreter: structs, @State, NavigationStack/Link, .task / async / await, ForEach, AsyncImage, URLSession, JSONDecoder, and ~50 other language + framework features (see STATUS.md)
- Per-instance @State scoping across NavigationLink pushes
- 306 tests passing
Install
.package(url: "https://github.com/haplollc/Kiln.git", from: "0.1.0")