Stickers Import Improvements

This commit is contained in:
Ilya Laktyushin
2021-06-18 07:59:10 +03:00
parent 3d81bf7ad8
commit d8e36f149f
3 changed files with 227 additions and 65 deletions

View File

@@ -88,6 +88,7 @@ open class AlertController: ViewController, StandalonePresentableController {
private weak var existingAlertController: AlertController?
public var willDismiss: (() -> Void)?
public var dismissed: (() -> Void)?
public init(theme: AlertControllerTheme, contentNode: AlertContentNode, existingAlertController: AlertController? = nil, allowInputInset: Bool = true) {
@@ -115,6 +116,7 @@ open class AlertController: ViewController, StandalonePresentableController {
self.controllerNode.dismiss = { [weak self] in
if let strongSelf = self, strongSelf.contentNode.dismissOnOutsideTap {
strongSelf.willDismiss?()
strongSelf.controllerNode.animateOut {
self?.dismiss()
}