Skip to main content

spinner_with_playback

Function spinner_with_playback 

Source
pub fn spinner_with_playback(
    id: impl Into<ElementId>,
    label: impl Into<SharedString>,
    playback: RepeatAnimationPlayback,
    cx: &App,
) -> AnyElement
Expand description

A spinner whose caller-owned clock survives virtual unmounting.

Reduced motion displays a static icon without starting an unused clock. Once started, time continues during unmounting and reduced motion; disabling reduced motion resumes the current phase. Use a new handle to restart.