pub fn loading_indicator(set: IconSet) -> Option<AnimatedIcon>Expand description
Return the loading/spinner animation for the given icon set.
This is the animated-icon counterpart of load_icon().
§Dispatch
IconSet::Material–progress_activity.svgwith continuous spin transform (1000ms)IconSet::Lucide–loader.svgwith continuous spin transform (1000ms)IconSet::Freedesktop– loadsprocess-workingsprite sheet from active icon theme- Other sets –
None
§Examples
// Result depends on enabled features and platform
let anim = native_theme::loading_indicator(native_theme::IconSet::Lucide);