Contents

backgroundColors

An array containing the collection view’s background colors.

Declaration

var backgroundColors: [NSColor]! { get set }

Discussion

This property contains an array of NSColor objects, representing the colors to use when drawing the background grid. Specifying an empty array or nil causes the collection view to use the default colors returned by the controlAlternatingRowBackgroundColors method.

When a background view is specified for the collection view, the colors in this property are ignored.

See Also

Configuring the Collection View