Material Components v96.0.0 Release Notes
Release Date: 2019-12-10 // over 4 years ago-
96.0.0
๐ In this major release we deleted and deprecated a bunch of APIs in BottomAppBar, Snackbar,
TextField, ActionSheet, BottomNavigation, ButtonBar, Cards, Feature highlight, Ink, Page control,
0๏ธโฃ and Tabs. We also enables ripple by default on Action Sheet. It was using a legacy ink animation.๐ฅ Breaking changes
BottomAppBar
โ Delete deprecated MDCBottomAppBarColorThemer
Snackbar
โ Delete snackbarMessageViewTextColor
TextField
โ Delete MDCTextFieldColorThemer
๐ New deprecations
ActionSheet
๐ Deprecated inkColor. Use the ripple APIs.
BottomNavigation
๐ Deprecate MDCBottomNavigationTypography themer
ButtonBar
๐ Deprecate MDCButtonBarColorThemer
Button
๐ Deprecate MDCFloatingButtonShapeThemer
Cards
๐ Deprecate MDCCardThemer
๐ Feature highlight
๐ Deprecate MDCFeatureHighlightFontThemer
Ink
๐ Deprecate MDCInkColorThemer
Page Control
๐ Deprecate-MDCPageControlColorThemer-applyColorScheme-toPageContro
Snackbar
๐ Deprecate MDCSnackbarColorThemer
Tabs
๐ Deprecate MDCTabBarColorThemer
TextFields
๐ Deprecate MDCTextFieldFontThemer
๐ New features
Chips
ChipFieldShouldBeginEditing method to MDCChipFieldDelegate to control if editing is allowed.
- (BOOL)chipFieldShouldBeginEditing:(MDCChipField *)chipField { return YES; }
Snackbar
โ Adds elementToFocusOnDismiss to MDCSnackbarMessage so a client can specify a view to focus on after the snackbar message is dismissed.
snackBarMessage.elementToFocusOnDismiss = view;
API changes
ActionSheet
๐ deprecated property:
inkColor
inMDCActionSheetController
. Use rippleColor instead.๐ deprecated property:
enableRippleBehavior
inMDCActionSheetController
. Use ripple.BottomAppBar
๐ deprecated class:
MDCBottomAppBarColorThemer
. No replacement exists. Please comment on #7172 in order to indicate interest in a replacement API.BottomNavigationBar
๐ deprecated class:
MDCBottomNavigationBarTypographyThemer
. Please use the Theming extension instead.ButtonBar
๐ deprecated class:
MDCButtonBarColorThemer
. ButtonBar is not intended to be themed as a standalone component. Please theme it via the AppBar component's Theming extension instead.Button
๐ deprecated class:
MDCFloatingButtonShapeThemer
. Please use [MDCFloatingButton applySecondaryThemeWithScheme:] instead. (Note: Shape theming is no longer available as an independent API.Cards
๐ deprecated protocol:
MDCCardScheming
. MDCCardScheming was made obsolete by theming with MDCContainerSchemes.๐ deprecated class:
MDCCardScheme
. MDCCardScheming was made obsolete by theming with MDCContainerSchemes.๐ deprecated class:
MDCCardThemer
. Please use MaterialCards+Theming instead.ChipField
๐ new method:
-chipFieldShouldBeginEditing:
inMDCChipFieldDelegate
. Asks the delegate if editing should begin in the specified chip field.๐ FeatureHighlight
๐ deprecated class:
MDCFeatureHighlightFontThemer
. No replacement exists. Please comment on #7172 in order to indicate interest in a replacement API.Ink
๐ deprecated class:
MDCInkColorThemer
. Please use Ripple instead.Page Control
๐ deprecated class:
MDCPageControlColorThemer
. No replacement exists. Please comment on #7172 in order to indicate interest in a replacement API.Snackbar
โ removed property:
snackbarMessageViewTextColor
inMDCSnackbarMessageView
. Use messsageTextColor instead.๐ deprecated class:
MDCSnackbarColorThemer
. No replacement exists. Please comment on #7172 in order to indicate interest in a replacement API.๐ new property:
elementToFocusOnDismiss
inMDCSnackbarMessage
. Element to focus on snackbar message dismiss. Focuses the first element on screen after dismiss by default. The focus will change to the element only if the focus is on the snackbar message.Tabs
๐ deprecated class:
MDCTabBarColorThemer
. Please use the Theming extension instead.Component changes
ActionSheet
- Action sheet enable ripple (#9135) (Bryan Oltman)
- ๐ Deprecate MDCActionSheetAction inkColor (#9127) (Bryan Oltman)
Banner
- Add a Swift example. (#9173) (Wenyu Zhang)
- โก๏ธ Update Readme to document the latest APIs. (#9100) (Wenyu Zhang)
BottomNavigation
- โก๏ธ Deprecate MDCBottomNavigationTypography themer and update docs (#9156) (Andrew Overton)
- Migrate MDCBottomNavigationBarColorThemer use to theming extension (#9142) (Bryan Oltman)
ButtonBar
- ๐ Deprecate MDCButtonBarColorThemer (#9155) (Andrew Overton)
Buttons
- ๐ Deprecate MDCFloatingButtonShapeThemer (#9101) (Galia Kaufman)
- ๐ Removing deprecated MDCFloatingButtonShapeThemer from theming extension (#9102) (Galia Kaufman)
Cards
- ๐ Delete old docs (#9163) (Andrew Overton)
- ๐ Deprecate MDCCardThemer (#9054) (Andrew Overton)
- ๐ Deprecate MDCCardThemer (#9108) (Bryan Oltman)
- Migrate MDCCardsColorThemer to theming extensions (#9141) (Bryan Oltman)
Chips
- โ Add RTL snapshot tests. (#9131) (Robert Moore)
- Add chipFieldShouldBeginEditing method to MDCChipFieldDelegate (#9157) (Bryan Oltman)
- Fix calculation of accessory frame. (#9167) (Robert Moore)
- ๐ Remove Themer references from README (#9149) (Bryan Oltman)
๐ Dialogs
- โ Snapshot tests for long action titles. (#9154) (Robert Moore)
๐ FeatureHighlight
- ๐ deprecate MDCFeatureHighlightFontThemer (#9115) (Andrew Overton)
Ink
- ๐ Deprecate MDCInkColorThemer (#9113) (Andrew Overton)
List
- ๐ removing use of MDCListColorThemer before deprecating it. (#9145) (Galia Kaufman)
PageControl
- โก๏ธ Update read me for MDCPageControlColorThemer (#9153) (Andrew Overton)
- ๐ deprecate-MDCPageControlColorThemer-applyColorScheme-toPageControl (#9123) (Andrew Overton)
Snackbar
- Adds elementToFocusOnDismiss to MDCSnackbar (#9148) (Yarden Eitan)
- ๐ Deprecate MDCSnackbarColorThemer (#9152) (Andrew Overton)
- delete snackbarMessageViewTextColor (#9056) (Andrew Overton)
Tabs
- ๐ Deprecate MDCTabBarColorThemer (#9103) (Andrew Overton)
- Disable Ripple while scrolling TabBarView (#9144) (Robert Moore)
- ๐
Document
MDCTabBarViewLayoutStyle
(#9132) (Robert Moore)
TextFields
- Delete MDCTextFieldColorThemer (#9109) (Bryan Oltman)
- ๐ Deprecate MDCTextFieldFontThemer (#9169) (Andrew Overton)
- ๐ Remove references to MDCTextFieldColorThemer from README (#9151) (Bryan Oltman)
Multi-component changes
- ๐ Delete deprecated MDCBottomAppBarColorThemer (#9166) (Bryan Oltman)