Initializer

init(_:spacing:alignment:)

Creates a grid item with the provided size, spacing, and alignment properties.

Declaration 宣言

init(_ size: GridItem.Size = .flexible(), spacing: CGFloat? = nil, alignment: Alignment? = nil)

Parameters パラメータ

size

The size of the grid item.

spacing

The spacing to use between this and the next item.

alignment

The alignment to use for this grid item.