v111.0.0
111.0.0
In this Major release we removed some deprecated action sheet themers, made visual improvements to Chips, ProgressView, Banner and Tabs. We also made links clickable in Alert Dialogs
Breaking changes
ActionSheet
We deleted ActionSheet Themers. Use theming extensions.
New features
ButtonBar
Add UIMenu support for MDCButtonBar.
MDCButtonBar *buttonBar = [[MDCButtonBar alloc] init];
UIMenu *primaryMenu = [self exampleMenuWithTitle:@"A primary action menu"];
menuAsPrimaryActionItem = [[UIBarButtonItem alloc] initWithImage:nil menu:primaryMenu];
menuAsPrimaryActionItem.title = @"Menu on tap";
buttonBar.items = @[ menuAsSecondaryActionItem, menuAsPrimaryActionItem, changingActionItem ];
…
- (UIMenu *)exampleMenuWithTitle:(NSString *)title API_AVAILABLE(ios(14.0)) {
UIAction *firstAction = [UIAction actionWithTitle:@"An action"
image:nil
identifier:nil
handler:^(__kindof UIAction *_Nonnull action) {
NSLog(@"First element was tapped.");
}];
UIAction *secondAction = [UIAction actionWithTitle:@"A second action"
image:nil
identifier:nil
handler:^(__kindof UIAction *_Nonnull action) {
NSLog(@"Second element was tapped.");
}];
NSArray<UIAction *> *menuElements = @[ firstAction, secondAction ];
return [UIMenu menuWithTitle:title children:menuElements];
}
Tabs
Add non fixed clustered centered layout style.
tabBar.preferredLayoutStyle =
MDCTabBarViewLayoutStyleNonFixedClusteredCentered;
API changes
TabBarView
new enum: MDCTabBarViewLayoutStyleNonFixedClusteredCentered
Component changes
ActionSheet
- Delete MDCActionSheetColorThemer (Andrew Overton)
- Delete MDCActionSheetThemer and MDCActionSheetScheme (Andrew Overton)
- Delete MDCActionSheetTypographyThemer (Andrew Overton)
- Rename ActionSheet assets (Andrew Overton)
Banner
- Add Banner snapshots for long text with no action style. (Wenyu Zhang)
- Add height constraints to leadingButton and trailingButton on MDCBannerView to handle the case where they are hidden. (Wenyu Zhang)
- Update sizeThatFits calculation to include layout margins in the height calculation and ensure entire leading button can be clicked when trailing button is hidden, by constraining the buttonContainerView to always be at least as tall as the leading button. (Ingerid Fosli)
BottomAppBar
- Internal change (Alyssa Weiss)
ButtonBar
- Add UIMenu support to MDCButtonBar. (Jan Philipp Sachse)
Chips
- Update inter-chip spacing in chip field to align with Material spec (8dp vertical and horizontal inter-chip spacing) (Bryan Oltman)
Dialogs
- Disabling selection in alerts while allowing tappable links (Galia Kaufman)
NavigationDrawer
- Make sure to update color of scrim view background when trait collection changes its user interface style. (Yarden Eitan)
- Update the MDCBottomDrawerViewController MDC themer to use dynamic colors. (Jake Rockland)
ProgressView
Tabs
- Add non fixed clustered centered layout style (Andrew Overton)