Skip to content

Commit

Permalink
Merge branch '3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
sberrevoets committed Oct 7, 2015
2 parents 187d122 + 2bfbd88 commit 7f76508
Show file tree
Hide file tree
Showing 128 changed files with 2,696 additions and 6,344 deletions.
18 changes: 18 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
language: objective-c
osx_image: xcode7

deploy:
provider: script
script: ./scripts/push.sh
on:
tags: true

before_install:
- gem install xcpretty

script:
- xcodebuild -workspace SDCAlertView.xcworkspace -scheme "SDCAlertView"
-destination "platform=iOS Simulator,name=iPhone 6s" | xcpretty -s
- xcodebuild -workspace SDCAlertView.xcworkspace -scheme "Example" -destination
"platform=iOS Simulator,name=iPhone 6s" | xcpretty -s

138 changes: 100 additions & 38 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,117 +1,179 @@
# CHANGELOG

# 2.3.0
## 3.0

**What's New:**
- Improved semantics for alert action styles. See the discussion in #81 for more information.
- Completely rewritten in Swift
- Updated for iOS 9
- Deployment target increased to iOS 8

### 2.5.3

**Bug Fixes:**
- Xcode 7 bugs/warnings

### 2.5.2

**Bug Fixes:**
- Solves an accessibility-related incompatibility between `UIAlertController` and `SDCAlertController` (###105)

### 2.5.1

**Bug Fixes:**
- Fixes a bug that would show the wrong cancel button title in a legacy alert in some cases
- Fixes a retain cycle between `SDCAlertController` and `SDCAlertView`

### 2.5

**What's New:**
- You can now specify the text alignment of the message label (###101)

**Bug Fixes:**
- Fixes an infinite loop that occurred on some device configurations (###91)
- Fixes the wrong button handler being called in some cases on iOS 7 (###97)

### 2.4.2

**What's New:**
- Re-introduces an explicit `title` property without generating warnings (###99)

### 2.4.1

**Bug Fixes:**
- Fixes a crash in a compatibility update introduced in the previous version

### 2.4

**Bug Fixes:**
- Fixes an issue that would prevent legacy alerts from calling the `shouldDismissHandler` (###90)

**What's New:**
- Adds 2 new customizable properties: `titleLabelColor` and `messageLabelColor` (###92)

### 2.3.2

**Bug Fixes:**
- Reverted the fix for ###87 because it causes a more prominent bug (#89)

### 2.3.1

**Bug Fixes:**
- Fixes crash when using attributed title in legacy alert (###85 & #86)
- Fixes a stack overflow on iPad 2 (###87)
- Fixes an issue that would not reflect the attributed of an attributed string after creating an alert (###88)

### 2.3.0

**What's New:**
- Improved semantics for alert action styles. See the discussion in ###81 for more information.

**Bug Fixes:**
- Fixes an animation issue in `SDCAlertView` on iOS 7 (#79)
- Fixes an animation issue in `SDCAlertView` on iOS 7 (###79)
- The warning introduced in 2.2 is removed

# 2.2.0
### 2.2.0

**Bug Fixes:**
- Fixes an incompatibility issue that would not correctly fetch text fields on iOS 7 (#67)
- Fixes an incompatibility issue that would not correctly fetch text fields on iOS 7 (###67)

# 2.1.1
### 2.1.1

**Bug Fixes:**
- Fixes an off-by-one error that breaks compatibility with iOS 7 (#70)
- Fixes an off-by-one error that breaks compatibility with iOS 7 (###70)

# 2.1
### 2.1

**What's New:**
- The `usesLegacyAlert` property is now made public

**Bug Fixes:**
- Updates the import in SDCAlertController.h to not depend on any precompiled headers
- Fixes several issues with the legacy alert (#62, #63, #64, #68)
- Fixes several issues with the legacy alert (###62, #63, #64, #68)
- Improves upon `UIAlertController` so that when an alert button is quickly tapped, it will highlight (`UIAlertController` does not do this)
- Fixes Auto Layout warnings for multi-line labels (#60)
- Fixes Auto Layout warnings for multi-line labels (###60)
- Returns the correct text when accessing `titleLabel.text`

# 2.0.1
### 2.0.1

**Bug Fixes:**
- Raises an exception when presenting SDCAlertView 1.0 from a `UIAlertView` or `UIActionSheet` (#56 - thanks @nschum)
- Raises an exception when presenting SDCAlertView 1.0 from a `UIAlertView` or `UIActionSheet` (###56 - thanks @nschum)
- Prevents a crash when creating an alert with a `nil` title or message

# 2.0
## 2.0

**What's New:**
- All new API that matches and extends `UIAlertController`
- Ability to always show buttons horizontally or vertically
- Backwards compatible with `SDCAlertView` (1.0)
- More stylistic elements you can style (alert width, button separators, text fields, etc.)

## 1.4.3
### 1.4.3

**Bug Fixes:**
- Fixes an issue that would not enforce `contentPadding` on the title and message labels properly (#58)
- Fixes an issue that would not enforce `contentPadding` on the title and message labels properly (###58)

## 1.4.2
### 1.4.2

**What's New:**
- Extra properties to specify padding and spacing in the alert (#55 - thanks @bcherry)
- Extra properties to specify padding and spacing in the alert (###55 - thanks @bcherry)

## 1.4.1
### 1.4.1

**Bug Fixes:**
- Show the button top separator in an alert without title or message text (#40)
- Show the button top separator in an alert without title or message text (###40)
- Initialization is written a little differently to be more subclass-friendly
- Ready for use in iOS 8

Though the alert can still be used in iOS 8, keep in mind that the actual iOS 8 alert looks slightly different. The plan is to eventually have support for both, but that's currently not the case.

## 1.4
### 1.4

**What's New:**
- Added the ability to position a two-button alert vertically as opposed to horizontally (#29)
- Added `attributedTitle` and `attributedMessage` properties (#30)
- Added the ability to position a two-button alert vertically as opposed to horizontally (###29)
- Added `attributedTitle` and `attributedMessage` properties (###30)

**Bug Fixes:**
- Auto-layout doesn't complain anymore when using `[[SDCAlertView alloc] init]`
- Fixes a bug that would not show correct button titles in certain alert configurations (#32)
- Instead of clipping button text, it now reduces the size of text on buttons appropriately (#33)
- Fixes a bug that would not show correct button titles in certain alert configurations (###32)
- Instead of clipping button text, it now reduces the size of text on buttons appropriately (###33)

## 1.3
### 1.3

**What's New:**
- The `SDCAlertViewTransitioning` protocol allows users to customize alert transitions and behavior
- `SDCAlertView` now supports `tintColor` for buttons and `contentView`

**Bug Fixes:**
- Fixes an issue where the status bar style would not be preserved if it was set to `UIStatusBarStyleLightContent` (#26 & #27)
- Fixes a bug that causes the app to lock up due to a race condition (#28)
- Adding subviews to `contentView` won't have any animation-related side effects anymore (see #25)
- Fixes an issue where the status bar style would not be preserved if it was set to `UIStatusBarStyleLightContent` (###26 & #27)
- Fixes a bug that causes the app to lock up due to a race condition (###28)
- Adding subviews to `contentView` won't have any animation-related side effects anymore (see ###25)

## 1.2.1
### 1.2.1

**Bug Fixes:**
- Resolves an issue that could put an app in a bad state when transitioning to and from multiple alerts in rapid succession.

## 1.2
### 1.2

**What's New:**
- New convenience methods for showing alerts more easily
- The `SDCAlertViewWidth` constant is made public (#24)
- The `contentView` does not require vertical constraints anymore, though they can be used to size the `contentView` other than "hug its subviews" (#23)
- The `SDCAlertViewWidth` constant is made public (###24)
- The `contentView` does not require vertical constraints anymore, though they can be used to size the `contentView` other than "hug its subviews" (###23)

**Bug Fixes:**
- Resolves an issue that would show the status bar if it was previously hidden (#21)
- Resolves an issue that would show the status bar if it was previously hidden (###21)
- Resolves an issue that would sometimes return the wrong button index when using `addButtonWithTitle:` (c4af94542253e211bebcb17e9a9dc898a284a209)
- Transitions between alerts flow more logically if you call several show or dismiss methods right after each other (#25)
- Transitions between alerts flow more logically if you call several show or dismiss methods right after each other (###25)
- The `animated` argument in `dismissWithClickedButtonIndex:animated:` is honored again (1bfa04903ffae880a377b3d97ddfed72ad7ff413)

## 1.1
### 1.1

**What's New:**
Support for styling an alert. A number of properties have been exposed so that alerts can be easily given a different style. Styling all alerts in an app using `UIAppearance` is also supported.

**Bug Fixes:**
- The alert's background is no longer using the toolbar hack (#16 & #17—thanks @clstroud!)
- Accessing a text field before calling `show` does not cause a crash anymore (#14)
- The alert's background is no longer using the toolbar hack (###16 & #17—thanks @clstroud!)
- Accessing a text field before calling `show` does not cause a crash anymore (###14)
- The color of text on a button color did not match `UIAlertView`'s text color 100%
- A disabled button will have its label's `enabled` property set to `NO`, which is also where it gets its gray color from
- A 1px hairline at the bottom of the right button in a two-button alert was removed
Expand All @@ -124,4 +186,4 @@ SDCAlertView's behavior should now match UIAlertView's. Any behavior that's diff

## 0.9

Initial release
Beta release
Loading

0 comments on commit 7f76508

Please sign in to comment.