Instance Property

isHighlighted

The highlight state of the cell.

Declaration

var isHighlighted: Bool { get set }

Discussion

This property manages the highlight state of the cell only. The default value of this property is false, which indicates that the cell is not highlighted.

You typically do not set the value of this property directly. Instead, the preferred way to select the cell and highlight it is to use the selection methods of the collection view object.

See Also

Managing the Cell’s State

var isSelected: Bool

The selection state of the cell.