diff --git a/CHANGELOG.md b/CHANGELOG.md index b4fdbe04..e9fd15cd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # CHANGELOG +## 5.1 +**Bug Fixes:** +- Fixes the inability to override visual style properties in a subclass of `DefaultVisualStyle`. The `VisualStyle` protocol has been removed and the conforming class been renamed to `AlertVisualStyle`. The old class name is still available, but marked as deprecated and will be removed in the future. + +**What's New:** +- Makes an `AlertAction`'s `handler` public. + # 5.0 5.0 is a compatibility update so the project builds in Swift 2.2 and doesn't generate warnings. It also changes the Objective-C names of the public enums, which Swift now supports. diff --git a/README.md b/README.md index c6a08a68..90a1db1c 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ platform :ios, '8.0' use_frameworks! target 'MyApp' do - pod 'SDCAlertView', '~> 5.0' + pod 'SDCAlertView', '~> 5.1' end ``` @@ -53,13 +53,14 @@ Then run `pod install`. To install with Carthage, add the following line to your `Cartfile`: ```ruby -"sberrevoets/SDCAlertView" ~> 5.0 +"sberrevoets/SDCAlertView" ~> 5.1 ``` Run `carthage update` and drag `SDCAlertView.framework` in the `Build` folder into your project. ## Swift Package Manager SPM does not yet support iOS, but SDCAlertView will be available there once it does. + # Alerts vs. Action Sheets Starting with version 4.0, `SDCAlertController` also supports the presentation of action sheets. Some things to keep in mind when using action sheets: @@ -69,11 +70,8 @@ Starting with version 4.0, `SDCAlertController` also supports the presentation o - When adding subviews to the custom content view, that view will replace the title and message labels. # Usage -`SDCAlertView` is written in Swift, but can be used in both Swift and -Objective-C. Classes in Objective-C have the same name they do in Swift, but -with an `SDC` prefix. Once Swift [supports prefixing enums](https://github.com/apple/swift/pull/618) they will also get the `SDC` prefix. +`SDCAlertView` is written in Swift, but can be used in both Swift and Objective-C. Corresponding types in Objective-C have the same name they do in Swift, but with an `SDC` prefix. -Unfortunately the Swift/Objective-C interop is not perfect, so not all functionality that's available in Swift is available in Objective-C. ## Basic ```swift diff --git a/SDCAlertView.podspec b/SDCAlertView.podspec index b109a6e8..b98c307b 100644 --- a/SDCAlertView.podspec +++ b/SDCAlertView.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |s| s.name = "SDCAlertView" - s.version = "5.0" + s.version = "5.1" s.summary = "The little alert that could" s.homepage = "https://github.com/sberrevoets/SDCAlertView" s.license = { :type => "MIT" }