Contents

init(_:spacing:alignment:)

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

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.