pub fn stack_from_iter<V>(iterator: impl IntoIterator<Item = V>) -> Stackwhere
V: IntoView + 'static,๐Deprecated since 0.2.0: Use Stack::from_iter() instead
Expand description
Creates a stack from an iterator of views. See also v_stack_from_iter and h_stack_from_iter.
ยงExample
use floem::views::*;
stack_from_iter(vec![1,1,2,2,3,4,5,6,7,8,9].iter().map(|val| text(val)));