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")) }