From 6efe35b34e75d694640b9eb374b4dface73566c4 Mon Sep 17 00:00:00 2001 From: Werner Freytag Date: Fri, 9 Jun 2017 13:00:39 +0200 Subject: [PATCH] fixes for swift 4 --- Source/Armchair.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Armchair.swift b/Source/Armchair.swift index be9d25d..b774798 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 = topMostViewController(presentingController) { - topController.present(alertView, animated: usesAnimation) { [weak self] _ in + topController.present(alertView, animated: usesAnimation) { [weak self] in if let closure = self?.didDisplayAlertClosure { closure() } @@ -1767,7 +1767,7 @@ open class Manager : ArmchairManager { // MARK: - // MARK: Notification Handlers - public func appWillResignActive(_ notification: Notification) { + @objc public func appWillResignActive(_ notification: Notification) { debugLog("appWillResignActive:") hideRatingAlert() }