pub fn spin(
icon: Svg,
id: impl Into<ElementId>,
theme: &Theme,
cx: &App,
) -> AnyElementExpand description
Turns a glyph, for work whose remaining extent is unknown.
Takes an Svg rather than any element because rotation is a transform
and GPUI carries transforms on Svg alone. crate::display::icon::paint
is the supported way to get one that already honours reading direction.