diff --git a/VDSSample/ViewControllers/ModalViewController.swift b/VDSSample/ViewControllers/ModalViewController.swift index caa35fd..0d2c518 100644 --- a/VDSSample/ViewControllers/ModalViewController.swift +++ b/VDSSample/ViewControllers/ModalViewController.swift @@ -13,7 +13,6 @@ import Combine class ModalViewController: BaseViewController { - var disabledSwitch = Toggle() var showFooterSwitch = Toggle() var fullScreenDialogSwitch = Toggle() var singleButtonSwitch = Toggle() @@ -38,7 +37,6 @@ class ModalViewController: BaseViewController { override func setupForm(){ super.setupForm() - addFormRow(label: "Disabled", view: disabledSwitch, pinTrailing: false) addFormRow(label: "Surface", view: surfacePickerSelectorView) addFormRow(label: "Show Modal Footer", view: showFooterSwitch, pinTrailing: false) addFormRow(label: "Full Screen Dialog", view: fullScreenDialogSwitch, pinTrailing: false) @@ -53,8 +51,8 @@ class ModalViewController: BaseViewController { addFormRow(label: "Max Height", view: heightTextField) addFormRow(label: "Max Width", view: widthTextField) - disabledSwitch.onChange = { [weak self] sender in - self?.component.isEnabled = !sender.isOn + fullScreenDialogSwitch.onChange = { [weak self] sender in + self?.component.fullScreenDialog = !sender.isOn } titleTextField @@ -78,7 +76,6 @@ class ModalViewController: BaseViewController { //setup UI surfacePickerSelectorView.text = component.surface.rawValue - disabledSwitch.isOn = !component.isEnabled titleTextField.text = component.title bodyTextField.text = component.content }