Tokamak/Sources/TokamakStaticHTML/Modifiers
Carson Katri d78ab20ea8
Add `Layout` protocol for FiberReconciler (#498)
* Initial pass at Layout protocol implementation

* Move layout into a separate pass

* Split reconciler into separate FiberReconcilerPass-es

* Cleanup reconcile pass

* Simplify cache implementation

* Optimize array capacity and persist cache between runs

* Revert viewChildrenCount

* Improve accuracy of stack layout

* Try caching sizeThatFits

* Revise caching of sizeThatFits

* Cleanup layout files and split up

* Further cleanup

* Add ContainedZLayout

* Add frame layouts

* Add snapshots tests that compare against native SwiftUI

* Perform updates from the top of the view hierarchy for dynamic layout

* Add Package.swift

* Fix reconciler bug

* Add test case for reconciler insert bug

* Respect spacing preferences

* Revise cache and spacing logic to match SwiftUI default implementations

* Allow spacing changes based on adjacent View type

* Support view traits in FiberReconciler (and LayoutValueKey by extension)

* Propagate cache invalidation

* Cleanup attributes

* Simplify LayoutPass and improve accuracy

* Cleanup logs

* Add layoutPriority tests

* Revise conflict with main

* Dictionary performance catch

* Remove unneccesary capacity preservation

* Update TokamakCoreBenchmark to handle LayoutView addition at hierarchy root

* Implement AnyLayout and replace LayoutActions

* Allow VStack/HStack to be created without children

* Fix padding implementation

* Formatting fixes

* Space out ViewArguments.swift properties

* Add backing storage to LayoutSubview to move out of ReconcilePass and slightly optimize stack usage
2022-06-27 08:53:30 -04:00
..
Effects Animation implementation using the Web Animations API (#427) 2021-07-13 08:48:45 -04:00
LayoutModifiers.swift Add `Layout` protocol for FiberReconciler (#498) 2022-06-27 08:53:30 -04:00
ModifiedContent.swift Add View Traits and transitions (#426) 2021-07-28 09:40:12 -04:00
ViewModifier.swift Add `_ShapeView` and `background` modifiers support to Fiber renderers (#491) 2022-06-15 15:33:31 +01:00
_BackgroundShapeModifier.swift Add `Material` to the HTML renderer (#418) 2021-07-07 18:09:13 -04:00
_BackgroundStyleModifier.swift Add `_ShapeView` and `background` modifiers support to Fiber renderers (#491) 2022-06-15 15:33:31 +01:00
_DomTextSanitizer.swift Add HTML sanitizer to Text (#437) 2021-08-24 11:27:45 -04:00