Material Components for iOS v107.3.0 Release Notes
Release Date: 2020-03-17 // about 4 years ago-
๐ This minor release includes several new APIs and improvements to Dialogs, AppBar, and Slider.
๐ New features
MDCAppBarViewController now provides an
accessibilityPerformEscapeDelegate
, which can be used to customize theaccessibilityPerformEscape
behavior of the AppBar without subclassing.class SomeDelegate: NSObject, MDCAppBarViewControllerAccessibilityPerformEscapeDelegate { func appBarViewControllerAccessibilityPerformEscape(_ appBarViewController: MDCAppBarViewController) -> Bool { // Perform custom escape handling return true } } appBarViewController.accessibilityPerformEscapeDelegate = delegate
MDCAlertController has a new
messageAlignment
API which can be used to adjust the alignment of the message text:alertController.messageAlignment = .right
MDCAlertController also now allow the order and alignment of actions to be customized with three new APIs:
actionsHorizontalAlignment
actionsHorizontalAlignmentInVerticalLayout
orderVerticalActionsByEmphasis
alert.actionsHorizontalAlignment = .justified alert.actionsHorizontalAlignmentInVerticalLayout = .justified alert.orderVerticalActionsByEmphasis = true
MDCSlider now allows you to customize the appearance of the thumb track with the new
shouldDisplayThumbWithDiscreteValueLabel
API. Turning this API on will keep the thumb track visible while the user is interacting with the slider.slider.shouldDisplayThumbWithDiscreteValueLabel = true
Component changes
AppBar
- Add AppBarCustomButtonThemeExample. (#9883) (featherless)
- Add AppBarWithExpandableCells example. (#9873) (featherless)
- Add a delegate for customizing accessibilityPerformEscape behavior. (#9879) (featherless)
- โ Test the UINavigationController accessibilityPerformEscape behavior. (#9876) (featherless)
๐ Dialogs
- Accessibility frame is larger than displayed text. (#9865) (Galia Kaufman)
- โ Add a snapshot test for extea long buttons (#9897) (Galia Kaufman)
- ๐ป Add missed accessibility labels for the UI elements of the dialog. (#9895) (Galia Kaufman)
- โ Add snapshots tests for adjustable insets (#9899) (Galia Kaufman)
- โ Adding a snapshot test to verify correct layout of actions in edge cases found in issue: #8434. (#9875) (Galia Kaufman)
- Allow setting text alignment for alert message text (#9839) (Galia Kaufman)
- Fix actions order for center and justified actions alignment. (#9889) (Galia Kaufman)
- Fix comment line length (#9887) (Galia Kaufman)
- ๐ Fix incorrect content height for non-standard dialogs (#9864) (Galia Kaufman)
- Fix incorrect vertical layout for uppercase buttons (#9877) (Galia Kaufman)
- Fix vertical calculations for wide actions view (#9878) (Galia Kaufman)
- Publishing actions API (#9888) (Galia Kaufman)
- ๐จ Refactoring alert actions test (#9886) (Galia Kaufman)
FlexibleHeader
- โ Add unit test to reproduce https://github.com/material-components/material-components-ios/issues/9863. (#9880) (featherless)
- ๐ง Fix bug where hairline configuration would not persist. (#9881) (featherless)
- Fix jumping effect in a table view with dynamic cell heights. (#9872) (featherless)
Ink
- ๐ Refactor MDCInkView logic grappling with interplay between legacy ink layer and max ripple radius, ink style, etc (#9855) (Andrew Overton)
Slider
- Allow thumb to stay filled with discrete value label (#9866) (Yarden Eitan)