Skip to content

Commit

Permalink
Update to 5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
sberrevoets committed May 19, 2016
1 parent 9b75848 commit e8c8b6b
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ platform :ios, '8.0'
use_frameworks!

target 'MyApp' do
pod 'SDCAlertView', '~> 5.0'
pod 'SDCAlertView', '~> 5.1'
end
```

Expand All @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion SDCAlertView.podspec
Original file line number Diff line number Diff line change
@@ -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" }
Expand Down

0 comments on commit e8c8b6b

Please sign in to comment.