Contents

itemSize

The default size to use for cells.

Declaration

var itemSize: CGSize { get set }

Discussion

If the delegate does not implement the collectionView(_:layout:sizeForItemAt:) method, the flow layout uses the value in this property to set the size of each cell. This results in cells that all have the same size.

The default size value is (50.0, 50.0).

See Also

Configuring item spacing