Digital ACT-191 ONEAPP-10928 story: onClick for close button
This commit is contained in:
parent
8a63ea5c75
commit
08be77242d
@ -81,13 +81,11 @@ open class ModalDialogViewController: UIViewController, Surfaceable {
|
|||||||
}.store(in: &subscribers)
|
}.store(in: &subscribers)
|
||||||
|
|
||||||
//clicking button
|
//clicking button
|
||||||
onClickSubscriber = modalDialog.closeButton.publisher(for: .touchUpInside)
|
onClickSubscriber = modalDialog.closeCrossButton.publisher(for: .touchUpInside)
|
||||||
.sink {[weak self] button in
|
.sink {[weak self] button in
|
||||||
guard let self else { return }
|
guard let self else { return }
|
||||||
self.dismiss()
|
self.dismiss()
|
||||||
}
|
}
|
||||||
|
|
||||||
modalDialog.closeCrossButton.onClick = { _ in self.dismiss() }
|
|
||||||
|
|
||||||
view.addSubview(modalDialog)
|
view.addSubview(modalDialog)
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user