diff --git a/VDSSample/ViewControllers/CheckBoxGroupViewController.swift b/VDSSample/ViewControllers/CheckBoxGroupViewController.swift index d7643d0..4a95d7c 100644 --- a/VDSSample/ViewControllers/CheckBoxGroupViewController.swift +++ b/VDSSample/ViewControllers/CheckBoxGroupViewController.swift @@ -59,7 +59,7 @@ class CheckboxGroupViewController: BaseViewController { component.onChange = { [weak self] group in guard let label = self?.actionLabel else { return } - let selected = group.selectedHandlers? + let selected = group.selectedItems? .compactMap{"\($0.labelText!)"} .joined(separator: "\r") ?? "none selected" @@ -104,7 +104,7 @@ class CheckboxGroupViewController: BaseViewController { } var checkbox: CheckboxItem? { - component.selectorViews.first + component.items.first } //Picker diff --git a/VDSSample/ViewControllers/NotificationViewController.swift b/VDSSample/ViewControllers/NotificationViewController.swift index 3c8737e..c8e3568 100644 --- a/VDSSample/ViewControllers/NotificationViewController.swift +++ b/VDSSample/ViewControllers/NotificationViewController.swift @@ -17,7 +17,6 @@ class NotificationViewController: BaseViewController { let firstButtonTextField = TextField() let secondButtonTextField = TextField() let hideCloseButtonToggle = Toggle() - let fullBleedToggle = Toggle() let titleDefaultText = "This is title" let subtitleDefaultText = "This is subtitle" @@ -59,7 +58,6 @@ class NotificationViewController: BaseViewController { addFormRow(label: "SubTitle", view: subTitleTextField) addFormRow(label: "Hide Button Group", view: buttonGroupToggle) addFormRow(label: "Hide Close Button", view: hideCloseButtonToggle) - addFormRow(label: "Full bleed", view: fullBleedToggle) addFormRow(label: "Action", view: label) addFormRow(label: "First Button Text", view: firstButtonTextField) addFormRow(label: "Second Button Text", view: secondButtonTextField) @@ -107,9 +105,6 @@ class NotificationViewController: BaseViewController { self?.component.hideCloseButton = toggle.isOn } - fullBleedToggle.onChange = { [weak self] toggle in - self?.component.fullBleed = toggle.isOn - } } func setupPicker() { diff --git a/VDSSample/ViewControllers/RadioBoxGroupViewController.swift b/VDSSample/ViewControllers/RadioBoxGroupViewController.swift index 1c49ba6..73297f5 100644 --- a/VDSSample/ViewControllers/RadioBoxGroupViewController.swift +++ b/VDSSample/ViewControllers/RadioBoxGroupViewController.swift @@ -84,7 +84,7 @@ class RadioBoxGroupViewController: BaseViewController{ component.selectorModels = [radioBox1, radioBox2] component.onChange = { [weak self] group in - let newText = "Selected:\r\(group.selectedHandler?.text ?? "none")" + let newText = "Selected:\r\(group.selectedItem?.text ?? "none")" self?.actionLabel.text = newText } @@ -97,7 +97,7 @@ class RadioBoxGroupViewController: BaseViewController{ } var radioBox: RadioBoxItem? { - component.selectorViews.first + component.items.first } //Picker diff --git a/VDSSample/ViewControllers/RadioButtonGroupViewController.swift b/VDSSample/ViewControllers/RadioButtonGroupViewController.swift index 3d43478..ac2850e 100644 --- a/VDSSample/ViewControllers/RadioButtonGroupViewController.swift +++ b/VDSSample/ViewControllers/RadioButtonGroupViewController.swift @@ -79,7 +79,7 @@ class RadioButtonGroupViewController: BaseViewController { component.selectorModels = [radioButton1, radioButton2, radioButton3] component.onChange = { [weak self] group in - let newText = "Selected:\r\(group.selectedHandler?.labelText ?? "none")" + let newText = "Selected:\r\(group.selectedItem?.labelText ?? "none")" self?.showErrorSwitch.isOn = group.showError self?.actionLabel.text = newText } @@ -93,7 +93,7 @@ class RadioButtonGroupViewController: BaseViewController { } var radioButton: RadioButtonItem? { - component.selectorViews.first + component.items.first } //Picker