Releases: sberrevoets/SDCAlertView
Releases · sberrevoets/SDCAlertView
7.1
What's New:
- Makes
AlertVisualStyle
subclassable again - Adds support for custom background colors in action sheets
- Adds Taptic feedback when dragging between buttons on iPhone 7
Bug Fixes:
- The dismissal animation looks like the system one again
- Action sheets without an explicit cancel button won't show the inferred cancel button twice anymore
- Button labels size and truncate as expected now, instead of being cut off
7.0.1
Bug Fixes:
- Avoids an infinite loop/crash when using an action sheet without explicit cancel buttons
7.0 (Swift 3)
This is a compatibility update for Swift 3.
Bug Fixes:
- Correctly calls the cancel button's handler in action sheets (#161)
6.0 (Swift 2.3)
This is a compatibility update for Swift 2.3.
5.1.1
Bug Fixes:
- Gives action buttons the button trait for Voice Over
5.1
Bug Fixes:
- Fixes the inability to override visual style properties in a subclass of
DefaultVisualStyle
. TheVisualStyle
protocol has been removed and the conforming class been renamed toAlertVisualStyle
. The old class name is still available, but marked as deprecated and will be removed in the future.
What's New:
- Makes an
AlertAction
'shandler
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.
Bug Fixes:
- Prioritize
textColorForAction()
over thetintColor
of an action - Properly exposes
visualStyle
as a property onSDCAlertController
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
4.0.1
Bug Fixes:
- Fixes incorrect fonts for text in alerts
4.0
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:
anddismissAnimated:completion:
to follow Objective-C nomenclature more closely - The title and message label fonts are removed from
VisualStyle
. To change the labels' fonts, please useattributedTitle
andattributedMessage
withNSFontAttributeName
instead. setShouldDismissHandler()
andsetVisualStyle()
are now properties namedshouldDismissHandler
andvisualStyle
respectively. Their functionality is unchanged.- The convenience method
showWithTitle(_:message:actionTitle:customView:)
has been renamed toalertWithTitle(_:message:actionTitle:customView:)
to provide more consistency with the action sheet's counterpart
3.1.1
Bug Fixes:
- Fixes a retain cycle
- Resolves an issue that would not correctly disable actions when needed