SDCAlertView Versions Save

The little alert that could

v7.0

7 years ago

This is a compatibility update for Swift 3.

Bug Fixes:

  • Correctly calls the cancel button's handler in action sheets (#161)

v6.0

7 years ago

This is a compatibility update for Swift 2.3.

v5.1.1

7 years ago

Bug Fixes:

  • Gives action buttons the button trait for Voice Over

v5.1

7 years ago

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.

v5.0

8 years ago

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.

Bug Fixes:

  • Prioritize textColorForAction() over the tintColor of an action
  • Properly exposes visualStyle as a property on SDCAlertController in Objective-C
  • Makes actionLayout a non-optional, allowing it to be exposed to Objective-C
  • Exposes a public init method in DefaultVisualStyle so subclassers don't have to implement this separately
  • Correctly shows buttons if an alert has scrollable content after rotation
  • Fixes incorrect accessibility labels on buttons

v4.0.1

8 years ago

Bug Fixes:

  • Fixes incorrect fonts for text in alerts

v4.0

8 years ago

What's New:

  • Adds support for presenting action sheets
  • Implements alert behaviors such as parallax and "tap outside to dismiss"
  • Action highlight colors can be changed with custom visual styles

Changes: This version introduces other changes that are not compatible with previous versions of SDCAlertView.

  • The automaticallyFocusFirstTextField property is now implemented as an alert behavior
  • In Objective-C, the presentation and dismissal methods are now named presentAnimated:completion: and dismissAnimated:completion: to follow Objective-C nomenclature more closely
  • The title and message label fonts are removed from VisualStyle. To change the labels' fonts, please use attributedTitle and attributedMessage with NSFontAttributeName instead.
  • setShouldDismissHandler() and setVisualStyle() are now properties named shouldDismissHandler and visualStyle respectively. Their functionality is unchanged.
  • The convenience method showWithTitle(_:message:actionTitle:customView:) has been renamed to alertWithTitle(_:message:actionTitle:customView:) to provide more consistency with the action sheet's counterpart

v3.1.1

8 years ago

Bug Fixes:

  • Fixes a retain cycle
  • Resolves an issue that would not correctly disable actions when needed

v3.1

8 years ago

What's New:

  • Adds an option to give the alert a different background color

Bug Fixes:

  • Fixes a bug that would not apply appropriate padding to the labels

v3.0.4

8 years ago

Bug Fixes:

  • Fixes a crash on iOS 8 when adding text fields to the alert