Instance Property


The selection state of the cell.


var isSelected: Bool { get set }


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

You typically do not set the value of this property directly. Changing the value of this property programmatically does not change the appearance of the cell. 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 isHighlighted: Bool

The highlight state of the cell.