de72316efa
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> |
||
---|---|---|
.. | ||
Modifiers | ||
Resources | ||
Scenes | ||
Shapes | ||
Tokens | ||
Views | ||
App.swift | ||
Core.swift | ||
StaticRenderer.swift |