updated from selectors
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
a6d29794ab
commit
3314076967
@ -74,7 +74,7 @@ class RadioButtonViewController: UIViewController, StoryboardInitable {
|
|||||||
// stackView.spacing = 10
|
// stackView.spacing = 10
|
||||||
// stackView.addArrangedSubview(radioButton)
|
// stackView.addArrangedSubview(radioButton)
|
||||||
// stackView.addArrangedSubview(radioButton2)
|
// stackView.addArrangedSubview(radioButton2)
|
||||||
radioButtonGroup.set(with: RadioButtonGroupModel(models: [model1, model2]))
|
radioButtonGroup.set(with: RadioButtonGroupModel(selectors: [model1, model2]))
|
||||||
componentContainerView.addSubview(radioButtonGroup)
|
componentContainerView.addSubview(radioButtonGroup)
|
||||||
|
|
||||||
radioButtonGroup.leadingAnchor.constraint(equalTo: componentContainerView.leadingAnchor, constant: 10).isActive = true
|
radioButtonGroup.leadingAnchor.constraint(equalTo: componentContainerView.leadingAnchor, constant: 10).isActive = true
|
||||||
@ -86,7 +86,7 @@ class RadioButtonViewController: UIViewController, StoryboardInitable {
|
|||||||
setupPicker()
|
setupPicker()
|
||||||
}
|
}
|
||||||
var radioButton: RadioButton? {
|
var radioButton: RadioButton? {
|
||||||
radioButtonGroup.radioButtons.first
|
radioButtonGroup.selectorViews.first
|
||||||
}
|
}
|
||||||
@IBAction func disabledChanged(_ sender: UISwitch) {
|
@IBAction func disabledChanged(_ sender: UISwitch) {
|
||||||
radioButtonGroup.disabled = sender.isOn
|
radioButtonGroup.disabled = sender.isOn
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user