diff --git a/CDAlertView.podspec b/CDAlertView.podspec index cef26cf..82a3d58 100644 --- a/CDAlertView.podspec +++ b/CDAlertView.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = 'CDAlertView' - s.version = '0.7.1' + s.version = '0.8.0' s.summary = 'Highly customizable alert/notification/success/error/alarm popup' s.description = <<-DESC CDAlertView is highly customizable alert popup written in Swift 3. Usage is similar to UIAlertController. diff --git a/CDAlertView/Classes/CDAlertView.swift b/CDAlertView/Classes/CDAlertView.swift index a036c4d..9f1a75f 100755 --- a/CDAlertView/Classes/CDAlertView.swift +++ b/CDAlertView/Classes/CDAlertView.swift @@ -9,7 +9,7 @@ import Foundation public enum CDAlertViewType { - case error, warning, success, notification, alarm, custom(image: UIImage), noImage + case error, warning, success, notification, alarm, noImage, custom(image: UIImage) // This is needed because we can't do a comparison of enums // if it has an associated value. diff --git a/README.md b/README.md index 7673c85..8117c7b 100644 --- a/README.md +++ b/README.md @@ -54,7 +54,7 @@ CDAlertView types: ```swift public enum CDAlertViewType { - case error, warning, success, notification, alarm, custom(image:UIImage) + case error, warning, success, notification, alarm, noImage, custom(image:UIImage) } ``` @@ -101,6 +101,8 @@ alert.autoHideTime = 4.5 // This will hide alert box after 4.5 seconds `popupWidth: CGFloat` -> Width of the popup view +`hasRoundedCorners` -> Apply rounded corners to alert view. Default is `true`. + `hasShadow: Bool` -> Apply shadows around the popup. Defualt is `true`. `circleFillColor: UIColor` -> Sets background color of header icon. (Color of circle area)