updated selectors
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
a8b40e3ff0
commit
2c64c62329
@ -72,7 +72,7 @@ class CheckboxGroupViewController: BaseViewController {
|
||||
checkbox2.labelText = "iPhone 11 Bundle 2"
|
||||
checkbox2.childText = "Apple iPhone 11 - 128 GB\nOtterbox Case Black\nScreen Protector"
|
||||
|
||||
checkboxGroup.setSelectorViewModels(models: [checkbox1, checkbox2])
|
||||
checkboxGroup.selectorModels = [checkbox1, checkbox2]
|
||||
|
||||
checkboxGroup.onChange = { [weak self] group in
|
||||
let selected = group.selectedHandlers?
|
||||
|
||||
@ -84,7 +84,7 @@ class RadioBoxGroupViewController: BaseViewController {
|
||||
radioBox2.text = "iPhone 11 Bundle 2"
|
||||
radioBox2.subText = "Apple iPhone 11 - 128 GB\nOtterbox Case Black\nScreen Protector"
|
||||
|
||||
radioBoxGroup.setSelectorViewModels(models: [radioBox1, radioBox2])
|
||||
radioBoxGroup.selectorModels = [radioBox1, radioBox2]
|
||||
|
||||
radioBoxGroup
|
||||
.publisher(for: .valueChanged)
|
||||
|
||||
@ -79,7 +79,7 @@ class RadioButtonViewController: BaseViewController {
|
||||
radioButton3.labelText = "iPhone 11 Bundle 3"
|
||||
radioButton3.childText = "Apple iPhone 11 - 256 GB\nOtterbox Case Black\nScreen Protector"
|
||||
|
||||
radioButtonGroup.setSelectorViewModels(models: [radioButton1, radioButton2, radioButton3])
|
||||
radioButtonGroup.selectorModels = [radioButton1, radioButton2, radioButton3]
|
||||
|
||||
radioButtonGroup.onChange = { [weak self] group in
|
||||
let alertController:UIAlertController = UIAlertController(title: "Alert",
|
||||
|
||||
@ -83,7 +83,7 @@ class RadioSwatchGroupViewController: BaseViewController {
|
||||
radioSwatch8.text = "Pink"
|
||||
radioSwatch8.inputId = "radioSwatch8"
|
||||
|
||||
radioSwatchGroup.setSelectorViewModels(models: [radioSwatch1, radioSwatch2, radioSwatch3, radioSwatch4, radioSwatch5, radioSwatch6, radioSwatch7, radioSwatch8])
|
||||
radioSwatchGroup.selectorModels = [radioSwatch1, radioSwatch2, radioSwatch3, radioSwatch4, radioSwatch5, radioSwatch6, radioSwatch7, radioSwatch8]
|
||||
|
||||
radioSwatchGroup.onChange = { group in
|
||||
print("Selected: \(group.selectedHandler?.text ?? "none")")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user