TouchBarSegmentedControlConstructorOptions

Properties

Link copied to clipboard
abstract var change: (selectedIndex: Double, isSelected: Boolean) -> Unit?

Called when the user selects a new segment.

Link copied to clipboard

The selection mode of the control:

Link copied to clipboard

An array of segments to place in this control.

Link copied to clipboard
Link copied to clipboard
abstract var selectedIndex: Double?

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.