Digital ACT-191 ONEAPP-10928 story: updating fullScreenDialog flag on control changes

This commit is contained in:
Vasavi Kanamarlapudi 2024-09-27 18:13:49 +05:30
parent b0eba5ea82
commit 71a299a3d0

View File

@ -51,10 +51,10 @@ class ModalViewController: BaseViewController<Modal> {
addFormRow(label: "Max Height", view: heightTextField)
addFormRow(label: "Max Width", view: widthTextField)
fullScreenDialogSwitch.onChange = { [weak self] sender in
self?.component.fullScreenDialog = !sender.isOn
}
fullScreenDialogSwitch.publisher(for: .valueChanged).sink { [weak self] control in
self?.component.fullScreenDialog = control.isOn
}.store(in: &subscribers)
titleTextField
.textPublisher
.sink { [weak self] text in