mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-03-28 12:21:59 +01:00
Merge pull request #94 from TenPercentHappier/master
Ensure didDisplayAlertClosure called for UIAlertController
This commit is contained in:
@@ -1241,7 +1241,10 @@ open class Manager : ArmchairManager {
|
||||
// get the top most controller (= the StoreKit Controller) and dismiss it
|
||||
if let presentingController = UIApplication.shared.keyWindow?.rootViewController {
|
||||
if let topController = topMostViewController(presentingController) {
|
||||
topController.present(alertView, animated: usesAnimation) {
|
||||
topController.present(alertView, animated: usesAnimation) { [weak self] _ in
|
||||
if let closure = self?.didDisplayAlertClosure {
|
||||
closure()
|
||||
}
|
||||
print("presentViewController() completed")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user