๐ฐadaptive column
Last updated
Last updated
SwiftUI โฉ Layout โฉ Grids โฉ adaptive column
.adaptive(minimum:maximum):
a single GridItem may represent more than one column.
SwiftUI will try to fit as many minimum width columns as possible, but once the number of columns is determined, these can grow up to the maximum width provided, so it fills the full space.
The method to determine how much space will be given to this GridItem is the same used for the flexible case (without the clamping).
the minimum property of an adaptive column is only used to compute the number of items inside that column, it's NOT the minimum width of that columnโ๏ธ๐ objc