Tokamak/Sources/TokamakStaticHTML
Max Desiatov de72316efa
Use setAttribute, not properties to fix SVG update (#279)
Property assignment does not update SVG elements. We may want to use properties instead of `setAttribute` in the future for optimizations. For now I think that `setAttribute` works in all cases, including SVG, and seems safer to me.

Resolves #278.

* Use setAttribute, not properties to fix SVG update

* Add HTMLAttribute to cleanly apply DOM updates

* Add doc comment to HTMLAttribute

* Update Sources/TokamakStaticHTML/Views/HTML.swift

Co-authored-by: Jed Fox <git@jedfox.com>

* Use static func property in TokamakDOM/TextField.swift

* Make `static func property` public

* Declare `static let value` on `HTMLAttribute`

Co-authored-by: Jed Fox <git@jedfox.com>
2020-09-23 09:13:22 +01:00
..
Modifiers Use setAttribute, not properties to fix SVG update (#279) 2020-09-23 09:13:22 +01:00
Resources Add `GeometryReader` implementation (#239) 2020-08-11 16:47:12 +01:00
Scenes Add Static HTML Renderer and Documentation (#204) 2020-08-01 16:27:12 -04:00
Shapes Use setAttribute, not properties to fix SVG update (#279) 2020-09-23 09:13:22 +01:00
Tokens Add default dark styles for Views (#241) 2020-08-10 16:05:53 -04:00
Views Use setAttribute, not properties to fix SVG update (#279) 2020-09-23 09:13:22 +01:00
App.swift Add `ColorScheme` environment (#136) 2020-08-02 18:55:35 +01:00
Core.swift Add Static HTML Renderer and Documentation (#204) 2020-08-01 16:27:12 -04:00
StaticRenderer.swift Use setAttribute, not properties to fix SVG update (#279) 2020-09-23 09:13:22 +01:00