Skip to main content

text_renderer

Function text_renderer 

Source
pub fn text_renderer() -> &'static Conformance
Expand description

A TextRenderer conformance on SwiftUI.EdgeInsets.

TextRenderer refines Animatable, so the witness table’s first slot is not a function but another witness table — the conforming type’s Animatable one. Nothing here can synthesize that: Animatable wants an associated type, a getter, a setter and a modify coroutine. So the host type is chosen for already having the conformance. EdgeInsets is the smallest public SwiftUI type that exports all three of a metadata accessor, a nominal type descriptor and an Animatable witness table.