Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 518 Bytes

File metadata and controls

21 lines (14 loc) · 518 Bytes

RadioButton

The RadioButton offers a binary choice.

Usage

The RadioButton is used as any other view.

The component has two mechanisms for notify when the value changes. You can use the onValueChanged close

radioButton.onValueChanged = { activated in
    // do something
}

or using the target-action pattern of UIControl. RadioButton only send actions for UIControl.Event.valueChanged,

radioButton.addTarget(self, action: #selector(radiobuttonTapped), for: .valueChanged)
``