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