From 5c963bda6a8a3e5ed28eb789c88dbee2c5a318d2 Mon Sep 17 00:00:00 2001 From: ArturoLee Date: Mon, 2 Oct 2017 19:41:34 -0400 Subject: [PATCH] =?UTF-8?q?UIAlertActionStyle.cancel=20was=20assigned=20to?= =?UTF-8?q?=20the=20rate=20button=20so=20it=20can=20appear=20bold.?= =?UTF-8?q?=E2=80=A9UIAlertActionStyle.default=20was=20assigned=20to=20the?= =?UTF-8?q?=20cancel=20button=20so=20it=20can=20have=20a=20regular=20font?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Source/Armchair.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Armchair.swift b/Source/Armchair.swift index 5a593e4..4a4a4e2 100644 --- a/Source/Armchair.swift +++ b/Source/Armchair.swift @@ -1225,7 +1225,7 @@ open class Manager : ArmchairManager { if (operatingSystemVersion >= 8 && usesAlertController) || operatingSystemVersion >= 9 { /* iOS 8 uses new UIAlertController API*/ let alertView : UIAlertController = UIAlertController(title: reviewTitle, message: reviewMessage, preferredStyle: UIAlertControllerStyle.alert) - alertView.addAction(UIAlertAction(title: cancelButtonTitle, style:UIAlertActionStyle.cancel, handler: { + alertView.addAction(UIAlertAction(title: cancelButtonTitle, style:UIAlertActionStyle.default, handler: { (alert: UIAlertAction!) in self.dontRate() })) @@ -1235,7 +1235,7 @@ open class Manager : ArmchairManager { self.remindMeLater() })) } - alertView.addAction(UIAlertAction(title: rateButtonTitle, style:UIAlertActionStyle.default, handler: { + alertView.addAction(UIAlertAction(title: rateButtonTitle, style:UIAlertActionStyle.cancel, handler: { (alert: UIAlertAction!) in self._rateApp() }))