Bug Fixes:
- Fixes the inability to override visual style properties in a subclass of
DefaultVisualStyle. TheVisualStyleprotocol 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'shandlerpublic.
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 thetintColorof an action - Properly exposes
visualStyleas a property onSDCAlertControllerin Objective-C - Makes
actionLayouta non-optional, allowing it to be exposed to Objective-C - Exposes a public init method in
DefaultVisualStyleso 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
Bug Fixes:
- Fixes incorrect fonts for text in alerts
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
automaticallyFocusFirstTextFieldproperty 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 useattributedTitleandattributedMessagewithNSFontAttributeNameinstead. setShouldDismissHandler()andsetVisualStyle()are now properties namedshouldDismissHandlerandvisualStylerespectively. 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
Bug Fixes:
- Fixes a retain cycle
- Resolves an issue that would not correctly disable actions when needed
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
Bug Fixes:
- Fixes a crash on iOS 8 when adding text fields to the alert
Bug Fixes:
- Resolves an issue that would never use the white status bar color if it was specified
Bug Fixes:
- Fixes a major issue that would simply not display an alert
- The example project now formally depends on the SDCAlertView target
- Added a missing docstring
Bug Fixes:
- Fixes an issue that would sometimes use the wrong scroll direction for actions
- Fixes the pod spec so it refers to the correct tag, not a branch
- Removes some unused (overridden) methods in the Objective-C bridging header
What's New:
- Completely rewritten in Swift
- Updated for iOS 9
- Deployment target increased to iOS 8
Bug Fixes:
- Xcode 7 bugs/warnings
Bug Fixes:
- Solves an accessibility-related incompatibility between
UIAlertControllerandSDCAlertController(#105)
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
SDCAlertControllerandSDCAlertView
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)
What's New:
- Re-introduces an explicit
titleproperty without generating warnings (#99)
Bug Fixes:
- Fixes a crash in a compatibility update introduced in the previous version
Bug Fixes:
- Fixes an issue that would prevent legacy alerts from calling the
shouldDismissHandler(#90)
What's New:
- Adds 2 new customizable properties:
titleLabelColorandmessageLabelColor(#92)
Bug Fixes:
- Reverted the fix for ###87 because it causes a more prominent bug (#89)
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)
What's New:
- Improved semantics for alert action styles. See the discussion in #81 for more information.
Bug Fixes:
- Fixes an animation issue in
SDCAlertViewon iOS 7 (#79) - The warning introduced in 2.2 is removed
Bug Fixes:
- Fixes an incompatibility issue that would not correctly fetch text fields on iOS 7 (#67)
Bug Fixes:
- Fixes an off-by-one error that breaks compatibility with iOS 7 (#70)
What's New:
- The
usesLegacyAlertproperty 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)
- Improves upon
UIAlertControllerso that when an alert button is quickly tapped, it will highlight (UIAlertControllerdoes not do this) - Fixes Auto Layout warnings for multi-line labels (#60)
- Returns the correct text when accessing
titleLabel.text
Bug Fixes:
- Raises an exception when presenting SDCAlertView 1.0 from a
UIAlertVieworUIActionSheet(#56) - Prevents a crash when creating an alert with a
niltitle or message
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.)
Bug Fixes:
- Fixes an issue that would not enforce
contentPaddingon the title and message labels properly (#58)
What's New:
- Extra properties to specify padding and spacing in the alert (#55)
Bug Fixes:
- 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.
What's New:
- Added the ability to position a two-button alert vertically as opposed to horizontally (#29)
- Added
attributedTitleandattributedMessageproperties (#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)
What's New:
- The
SDCAlertViewTransitioningprotocol allows users to customize alert transitions and behavior SDCAlertViewnow supportstintColorfor buttons andcontentView
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
contentViewwon't have any animation-related side effects anymore (see #25)
Bug Fixes:
- Resolves an issue that could put an app in a bad state when transitioning to and from multiple alerts in rapid succession.
What's New:
- New convenience methods for showing alerts more easily
- The
SDCAlertViewWidthconstant is made public (#24) - The
contentViewdoes not require vertical constraints anymore, though they can be used to size thecontentViewother 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 sometimes return the wrong button index when using
addButtonWithTitle: - Transitions between alerts flow more logically if you call several show or dismiss methods right after each other (#25)
- The
animatedargument indismissWithClickedButtonIndex:animated:is honored again
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
UIAppearanceis also supported.
Bug Fixes:
- The alert's background is no longer using the toolbar hack (#16 & #17)
- Accessing a text field before calling
showdoes 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
enabledproperty set toNO, 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
This release marks the first official release of SDCAlertView.
SDCAlertView's behavior should now match UIAlertView's. Any behavior that's different from UIAlertView and is not documented as a "won't fix" or known bug is considered a bug that needs to be solved.
Beta release