From 3bf9ca2f8be8ea464a4d7a4ecc7a7f6d866a472a Mon Sep 17 00:00:00 2001 From: Narciso Cerezo Date: Sat, 6 Jun 2015 00:40:55 +0200 Subject: [PATCH] Fixed typo in showCloseButton (was showCloseButtton) Added new SCLAlertViewStyle.Wait in README.md --- README.md | 2 +- SCLAlertView/SCLAlertView.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f87498a..2fc07bc 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ alert.showEdit(self, title: "Edit View", subTitle: "This alert view shows a text ####Alert View Styles ```swift enum SCLAlertViewStyle: Int { - case Success, Error, Notice, Warning, Info, Edit + case Success, Error, Notice, Warning, Info, Edit, Wait } ``` diff --git a/SCLAlertView/SCLAlertView.swift b/SCLAlertView/SCLAlertView.swift index a74cbd3..59e8102 100644 --- a/SCLAlertView/SCLAlertView.swift +++ b/SCLAlertView/SCLAlertView.swift @@ -86,7 +86,7 @@ public class SCLAlertView: UIViewController { var pressBrightnessFactor = 0.85 // UI Options - var showCloseButtton = true + var showCloseButton = true // Members declaration var baseView = UIView() @@ -387,7 +387,7 @@ public class SCLAlertView: UIViewController { } // Done button - if showCloseButtton { + if showCloseButton { let txt = completeText != nil ? completeText! : "Done" addButton(txt, target:self, selector:Selector("hideView")) }