struct LazyVStack
Swift
struct LazyVStack<Data, Content> where Data : RandomAccessCollection, Content : View, Data.Index == Int
A vertically scrolling list that mounts only the rows the viewport shows.
LazyVGrid with a single full-width column; the same rules apply — fixed
rowHeight, must live inside a ScrollView(.vertical), cell state does not
survive scrolling.
Sources/LavaUI/LazyGrid.swift:154
Constructors
init(_ data: Data, rowHeight: Float, spacing: Float = 0, scrollTarget: Int? = nil, @ViewBuilder content: @escaping (Data.Element) -> Content)
Not documented.
Sources/LavaUI/LazyGrid.swift:162
Properties
var body: some View { get }
Not documented.
Sources/LavaUI/LazyGrid.swift:176
var content: (Data.Element) -> Content
Not documented.
Sources/LavaUI/LazyGrid.swift:160
var data: Data
Not documented.
Sources/LavaUI/LazyGrid.swift:156
var rowHeight: Float
Not documented.
Sources/LavaUI/LazyGrid.swift:157
var scrollTarget: Int?
Not documented.
Sources/LavaUI/LazyGrid.swift:159
var spacing: Float
Not documented.
Sources/LavaUI/LazyGrid.swift:158