Material Components for iOS v109.3.0 Release Notes
Release Date: 2020-05-12 // almost 4 years ago-
๐ This minor release includes API improvements to ProgressView, SnackBars and TextFields, as well as tests and bug fixes for ActionSheet, AppBar, BottomAppBar, BottomSheet, Collections, Dialogs, FlexibleHeader and Tabs.
๐ New features
๐ ProgressView supports a gradient progress bar:
self.progressView.progressTintColors = @[ (id)UIColor.greenColor.CGColor, (id)UIColor.blueColor.CGColor, (id)UIColor.redColor.CGColor ];
๐ Snackbars support setting presentation host view on a specific message:
MDCSnackbarMessage *message = [MDCSnackbarMessage messageWithText:@"message"]; message.presentationHostViewOverride = self.collectionView;
Snackbars enable dismissal when the user taps anywhere on the snackbar.
MDCSnackbarMessage *message = [MDCSnackbarMessage messageWithText:@"message"]; message.shouldDismissOnOverlayTap = YES;
๐ TextFields support setting the border radius:
textField.borderRadius = 4.0f;
API changes
Component changes
ActionSheet
- โก๏ธ Add test showcasing how when an Action's image is set it does not update an ActionSheet. (Cody Weaver)
- ๐ Support setting image later in lifecycle (Cody Weaver)
AppBar
- Add a presented hidden example. (Jeff Verkoeyen)
- Clarify the purpose of the example supplemental view controllers. (Jeff Verkoeyen)
- Don't hide the navigation bar in AppBarNavigationControllerExample. (Jeff Verkoeyen)
- Extract a sample app bar view controller to supplemental. (Jeff Verkoeyen)
- Make the presented hidden example show a new view controller each time. (Jeff Verkoeyen)
BottomAppBar
- Have BottomAppBar respect safe area (Andrew Overton)
BottomSheet
Collections
- Fix dynamic color not working when it is used in collectionView:cellBackgroundColorAtIndexPath:. (Wenyu Zhang)
- ๐ Remove special characters from example breadcrumbs. (Jeff Verkoeyen)
๐ Dialogs
- Allow MDCAlertController to become first responder via its view. (Jake Rockland)
- Allow MDCAlertController to become first responder. (Wenyu Zhang)
- Fix the vertical alignment of long justified actions. (Galia Kaufman)
- Fix UITextView accessory view example (Galia Kaufman)
- โ Fixing broken unit test (Galia Kaufman)
- Include insets in alignment calculations of long actions (Galia Kaufman)
- โ Test a large title image with custom insets. (Iryna Berezan)
FlexibleHeader
- Add a safe area layout guide example. (Jeff Verkoeyen)
ProgressView
- ๐ Add support for gradient progress bar. (Wenyu Zhang)
- Change progressTintColor and trackTintColor to nullable. (Wenyu Zhang)
- โก๏ธ Update expected translated string value for Progress localization test. (Wenyu Zhang)
Snackbar
- Add ability to set presentation host view on specific message. (Yarden Eitan)
- Add an option to dismiss when the user taps anywhere on the overlay. (Nobody)
- โก๏ธ Update localized string in localization test. (Wenyu Zhang)
Tabs
- Add programmatic tab switcher buttons to TabBarView example (Andrew Overton)
- ๐ Move effectively private MDCTabBarExtendedAlignment.h and MDCTabBarSizeClassDelegate.h headers into extension directories. (Bryan Oltman)
TextFields
- Add borderRadius property (Jonathan Willing)
Multi-component changes
- ๐ Correct
accessibilityLabel
docs (Rob Moore)