v96.0.0
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,
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
in MDCActionSheetController
. Use rippleColor instead.
deprecated property: enableRippleBehavior
in MDCActionSheetController
. Use ripple.
BottomAppBar
deprecated class: MDCBottomAppBarColorThemer
. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/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:
in MDCChipFieldDelegate
. Asks the delegate if editing should begin in the specified chip field.
FeatureHighlight
deprecated class: MDCFeatureHighlightFontThemer
. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/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 https://github.com/material-components/material-components-ios/issues/7172 in order to indicate interest in a replacement API.
Snackbar
removed property: snackbarMessageViewTextColor
in MDCSnackbarMessageView
. Use messsageTextColor instead.
deprecated class: MDCSnackbarColorThemer
. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/7172 in order to indicate interest in a replacement API.
new property: elementToFocusOnDismiss
in MDCSnackbarMessage
. 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
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)