Skip to main content

Module layout

Module layout 

Source
Expand description

Layout strategies for GridView.

See GridLayoutStrategy for the contract and the module docs there for the shipped strategies.

Structs§

TileRect
The content-space rect of one tile (before the scroll offset is subtracted). x/y are relative to the scrollable content origin.
UniformGrid
A uniform grid: fixed row height, columns derived per GridSizing.
VariableRowGrid
A grid whose rows are each sized to their tallest tile.
VirtualizedMasonry
A virtualized waterfall grid.
VisibleTileRange
The flat model-index range [start, end) to realize for a given scroll

Enums§

GridSizing
Tile sizing policy. Names mirror SwiftUI GridItem, Flutter’s SliverGridDelegate, and WinUI MinItemWidth.
ScrollAnchor
Where a programmatically-revealed item should land in the viewport.