Skip to content

Latest commit

 

History

History

RadioButton

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

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)
``