gleamtea/spinner
A bubble: an animated spinner.
Return tick from your init, then forward every message to
update — the spinner recognises only its own tick messages
and keeps itself running by returning the next tick.
Types
Values
pub fn tick(spinner: Spinner) -> gleamtea.Cmd(msg)
The command that advances the animation once. Return it from init.
pub fn update(
msg: msg,
spinner: Spinner,
) -> #(Spinner, gleamtea.Cmd(msg))
Advance the spinner on its own tick; ignore everything else.
pub fn view(spinner: Spinner) -> String
The current frame, coloured if a colour was configured.