Instance Property


The index of the selected item in the scrubber.


var selectedIndex: Int { get set }


If no item is selected, the value of this property is -1. If you set this property through the scrubber’s animator proxy, the selection change animates.

To use a scrubber’s animator proxy when changing the selected item, employ the NSAnimatablePropertyContainer protocol, using code like this: scrubber.animator.selectedIndex = 123

See Also

Getting the State of the Scrubber

var numberOfItems: Int

The number of items represented by the scrubber.

var highlightedIndex: Int

The index of the highlighted item in the scrubber.