0.11.0
This release adds support for SwiftWasm 5.7. It also includes a new reconciler modeled after React's Fiber reconciler. It can provide faster updates and allow for larger View hierarchies. It also includes layout steps that can match SwiftUI layouts closer than CSS approximations.
You can specify which reconciler to use in your App's configuration:
struct CounterApp: App {
static let _configuration: _AppConfiguration = .init(
// Specify `useDynamicLayout` to enable the layout steps in place of CSS approximations.
reconciler: .fiber(useDynamicLayout: true)
)
var body: some Scene {
WindowGroup("Counter Demo") {
Counter(count: 5, limit: 15)
}
}
}
What's Changed
- Experimental "React Fiber"-like Reconciler by @carson-katri in https://github.com/TokamakUI/Tokamak/pull/471
- Support meta tags in StaticHTMLRenderer by @AndrewBarba in https://github.com/TokamakUI/Tokamak/pull/483
- Reenable macOS CI builds, using macOS 12 and Xcode 13.4 by @ezraberch in https://github.com/TokamakUI/Tokamak/pull/484
- Add html5 doctype to static renderer by @AndrewBarba in https://github.com/TokamakUI/Tokamak/pull/486
- Revert "Add html5 doctype to static renderer (#486)" by @MaxDesiatov in https://github.com/TokamakUI/Tokamak/pull/487
- Clarify testing commands in
CONTRIBUTING.mdby @MaxDesiatov in https://github.com/TokamakUI/Tokamak/pull/488 - Support
foregroundColorforTextFieldby @carson-katri in https://github.com/TokamakUI/Tokamak/pull/453 - Custom Layout Engine for Fiber Reconciler by @carson-katri in https://github.com/TokamakUI/Tokamak/pull/472
- Add support for 'Fiber' label in CI by @carson-katri in https://github.com/TokamakUI/Tokamak/pull/493
- Tweak formatting rules for attributes by @MaxDesiatov in https://github.com/TokamakUI/Tokamak/pull/492
- Add configuration options to
Appto choose reconciler by @carson-katri in https://github.com/TokamakUI/Tokamak/pull/495 - Add
_ShapeViewandbackgroundmodifiers support to Fiber renderers by @carson-katri in https://github.com/TokamakUI/Tokamak/pull/491 - Add
_PaddingLayoutsupport to layout engine by @carson-katri in https://github.com/TokamakUI/Tokamak/pull/485 - Add file size to benchmark script by @ezraberch in https://github.com/TokamakUI/Tokamak/pull/496
- Implement
AnyShapeby @filip-sakel in https://github.com/TokamakUI/Tokamak/pull/497 - Fix build and tests for 5.7 toolchain by @kateinoigakukun in https://github.com/TokamakUI/Tokamak/pull/499
- Add
Layoutprotocol for FiberReconciler by @carson-katri in https://github.com/TokamakUI/Tokamak/pull/498 - Support
Imagein Fiber renderers by @carson-katri in https://github.com/TokamakUI/Tokamak/pull/500 - Add support for preferences,
@StateObject,@EnvironmentObject, and customDynamicPropertytypes by @carson-katri in https://github.com/TokamakUI/Tokamak/pull/501 - Allow window resizing in Fiber renderers by @carson-katri in https://github.com/TokamakUI/Tokamak/pull/502
- Use Swift 5.7 nightly on CI, fix build issues by @MaxDesiatov in https://github.com/TokamakUI/Tokamak/pull/507
- Update default assignee in
bug_report.mdby @MaxDesiatov in https://github.com/TokamakUI/Tokamak/pull/510 - Disable GTK macOS builds by @MaxDesiatov in https://github.com/TokamakUI/Tokamak/pull/512
- Fix typos in doc comments across the codebase by @BenedictSt in https://github.com/TokamakUI/Tokamak/pull/513
- Create
FAQ.mdby @MaxDesiatov in https://github.com/TokamakUI/Tokamak/pull/511
New Contributors
- @AndrewBarba made their first contribution in https://github.com/TokamakUI/Tokamak/pull/483
- @BenedictSt made their first contribution in https://github.com/TokamakUI/Tokamak/pull/513
Full Changelog: https://github.com/TokamakUI/Tokamak/compare/0.10.1...0.11.0