Digital ACT-191 ONEAPP-10928 story: removed unnecessary code
This commit is contained in:
parent
fb292038f3
commit
70fb11b810
@ -17,11 +17,8 @@ class ModalViewController: BaseViewController<Modal> {
|
|||||||
var fullScreenDialogSwitch = Toggle()
|
var fullScreenDialogSwitch = Toggle()
|
||||||
var singleButtonSwitch = Toggle()
|
var singleButtonSwitch = Toggle()
|
||||||
var hideCloseSwitch = Toggle()
|
var hideCloseSwitch = Toggle()
|
||||||
|
|
||||||
var titleTextField = TextField()
|
var titleTextField = TextField()
|
||||||
var bodyTextField = TextField()
|
var bodyTextField = TextField()
|
||||||
var heightTextField = TextField()
|
|
||||||
var widthTextField = TextField()
|
|
||||||
|
|
||||||
override func viewDidLoad() {
|
override func viewDidLoad() {
|
||||||
super.viewDidLoad()
|
super.viewDidLoad()
|
||||||
@ -40,8 +37,6 @@ class ModalViewController: BaseViewController<Modal> {
|
|||||||
addFormRow(label: "Hide Close Button", view: hideCloseSwitch, pinTrailing: false)
|
addFormRow(label: "Hide Close Button", view: hideCloseSwitch, pinTrailing: false)
|
||||||
addFormRow(label: "Modal Title", view: titleTextField)
|
addFormRow(label: "Modal Title", view: titleTextField)
|
||||||
addFormRow(label: "Modal Body", view: bodyTextField)
|
addFormRow(label: "Modal Body", view: bodyTextField)
|
||||||
addFormRow(label: "Max Height", view: heightTextField)
|
|
||||||
addFormRow(label: "Max Width", view: widthTextField)
|
|
||||||
|
|
||||||
fullScreenDialogSwitch.publisher(for: .valueChanged).sink { [weak self] control in
|
fullScreenDialogSwitch.publisher(for: .valueChanged).sink { [weak self] control in
|
||||||
self?.component.fullScreenDialog = control.isOn
|
self?.component.fullScreenDialog = control.isOn
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user