Digital ACT-191 ONEAPP-10928 story: removed disabled
This commit is contained in:
parent
5aefd665ed
commit
1503310f42
@ -13,7 +13,6 @@ import Combine
|
||||
|
||||
class ModalViewController: BaseViewController<Modal> {
|
||||
|
||||
var disabledSwitch = Toggle()
|
||||
var showFooterSwitch = Toggle()
|
||||
var fullScreenDialogSwitch = Toggle()
|
||||
var singleButtonSwitch = Toggle()
|
||||
@ -38,7 +37,6 @@ class ModalViewController: BaseViewController<Modal> {
|
||||
|
||||
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<Modal> {
|
||||
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<Modal> {
|
||||
|
||||
//setup UI
|
||||
surfacePickerSelectorView.text = component.surface.rawValue
|
||||
disabledSwitch.isOn = !component.isEnabled
|
||||
titleTextField.text = component.title
|
||||
bodyTextField.text = component.content
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user