Contents

maximumNumberOfColumns

The maximum number of columns to display in the collection view’s visible area.

Declaration

var maximumNumberOfColumns: Int { get set }

Discussion

Use this value to specify the maximum number of columns that should be visible in the collection view at any given time. The grid layout object uses this value during layout to configure the position and spacing of items. The default value of this property is 0, which means that there is no maximum number of columns.

See Also

Specifying the Grid Parameters