Skip to content

LazyVStack

A vertical stack that builds rows only as they scroll into view.

<LazyVStack ... />

Topics

Properties

Name Type Required Description
itemCount number required Number of rows.
itemFactory function required itemFactory(index) returns the row's view.
rowHeight number optional Row height in points.
spacing number optional Gap between rows in points.
reorderable boolean optional Rows reorder by dragging.
onReorder function optional onReorder(difference) after a drag.

Platform notes

  • AppKit and UIKit.

Source: lua/ui/lazy.lua:25 (ns.LazyVStack)