v109.3.0
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)