diff --git a/Source/Armchair.swift b/Source/Armchair.swift index 5154deb..8b0d9cb 100644 --- a/Source/Armchair.swift +++ b/Source/Armchair.swift @@ -1241,7 +1241,7 @@ 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 = Manager.topMostViewController(presentingController) { - topController.present(alertView, animated: usesAnimation) { [weak self] _ in + topController.present(alertView, animated: usesAnimation) { [weak self] in if let closure = self?.didDisplayAlertClosure { closure() } @@ -1777,12 +1777,12 @@ open class Manager : ArmchairManager { // MARK: - // MARK: Notification Handlers - public func appWillResignActive(_ notification: Notification) { + @objc public func appWillResignActive(_ notification: Notification) { debugLog("appWillResignActive:") hideRatingAlert() } - public func applicationDidFinishLaunching(_ notification: Notification) { + @objc public func applicationDidFinishLaunching(_ notification: Notification) { DispatchQueue.global(qos: .background).async { self.debugLog("applicationDidFinishLaunching:") self.migrateKeysIfNecessary() @@ -1790,7 +1790,7 @@ open class Manager : ArmchairManager { } } - public func applicationWillEnterForeground(_ notification: Notification) { + @objc public func applicationWillEnterForeground(_ notification: Notification) { DispatchQueue.global(qos: .background).async { self.debugLog("applicationWillEnterForeground:") self.migrateKeysIfNecessary()