Skip to main content

alternate

Function alternate 

Source
pub fn alternate<M>(
    options: impl IntoIterator<Item = Node<M>>,
    current: usize,
) -> Node<M>
Expand description

One of options at a time: the one at current, or the last one if it’s past the end. It’s as big as the biggest option, so it doesn’t change size when current does. The host fades from one to the other. Keep the options the same from one view to the next, so the host can tell which one is coming in.