Contents

selectedIndex

The currently selected index.

Declaration

var selectedIndex: Int { get set }

Discussion

The default value is 0. You can only set a value that’s greater than or equal to 0 and less than numberOfIndexes.

See Also

Accessing the control value