selectedIndex

abstract var selectedIndex: Double?(source)

The index of the currently selected segment, will update automatically with user interaction. When the mode is multiple it will be the last selected item.