Material Components v55.2.0 Release Notes
-
๐ This minor release includes new Snackbar features and minor improvements to the Catalog.
๐ New features
Snackbar now allows you to change the snackbar message alignment on iPad. For example:
MDCSnackbarManager.alignment = MDCSnackbarAlignmentLeading;
Snackbar also exposes a delegate for theming snackbar messages.
MDCSnackbarManager.delegate = appDelegate; - (void)willPresentSnackbarWithMessageView:(nullable MDCSnackbarMessageView *)messageView { // You can theme the individual messageView.actionButtons here. }
There is a new shadow elevation constant,
MDCShadowElevationBottomNavigationBar
.API changes
ShadowElevations
MDCShadowElevationBottomNavigationBar
๐ new constant:
MDCShadowElevationBottomNavigationBar
Snackbar
MDCSnackbarAlignment
๐ new enum value:
MDCSnackbarAlignmentCenter
inMDCSnackbarAlignment
๐ new enum value:
MDCSnackbarAlignmentLeading
inMDCSnackbarAlignment
๐ new enum:
MDCSnackbarAlignment
MDCSnackbarMessageView
๐ new property:
actionButtons
inMDCSnackbarMessageView
MDCSnackbarManager
๐ new property:
delegate
inMDCSnackbarManager
๐ new property:
alignment
inMDCSnackbarManager
MDCSnackbarManagerDelegate
๐ new protocol:
MDCSnackbarManagerDelegate
๐ new method:
-willPresentSnackbarWithMessageView:
inMDCSnackbarManagerDelegate
Component changes
Tabs
๐ Changes
- 0๏ธโฃ Initialize default color and typography schemes in examples (#4200) (John Detloff)
schemes/Typography
๐ Changes
- 0๏ธโฃ Initialize default color and typography schemes in examples (#4200) (John Detloff)
๐ FeatureHighlight
๐ Changes
- 0๏ธโฃ Initialize default color and typography schemes in examples (#4200) (John Detloff)
AppBar
๐ Changes
- Create an example of MDCAppBarContainerViewController usage (#4197) (John Detloff)
- 0๏ธโฃ Initialize default color and typography schemes in examples (#4200) (John Detloff)
Buttons
๐ Changes
- โ Disable flaky test. (#4157) (featherless)
- 0๏ธโฃ Initialize default color and typography schemes in examples (#4200) (John Detloff)
ButtonBar
๐ Changes
- 0๏ธโฃ Initialize default color and typography schemes in examples (#4200) (John Detloff)
TextFields
๐ Changes
Chips
๐ Changes
- 0๏ธโฃ Initialize default color and typography schemes in examples (#4200) (John Detloff)
Snackbar
๐ Changes
- Allow Snackbars to have leading alignment on iPads (#4163) (Andrew Overton)
- Exposed the snackbar button class (#4171) (Yarden Eitan)
Slider
๐ Changes
- 0๏ธโฃ Initialize default color and typography schemes in examples (#4200) (John Detloff)
NavigationBar
๐ Changes
- 0๏ธโฃ Initialize default color and typography schemes in examples (#4200) (John Detloff)
ActivityIndicator
๐ Changes
- 0๏ธโฃ Initialize default color and typography schemes in examples (#4200) (John Detloff)
Typography
๐ Changes
- โ Add unit test to improve coverage (#4198) (ianegordon)
๐ Dialogs
๐ Changes
- 0๏ธโฃ Initialize default color and typography schemes in examples (#4200) (John Detloff)
BottomNavigation
๐ Changes
- Fix shadow elevation value (#4195) (Robert Moore)
FlexibleHeader
๐ Changes
- โก๏ธ Always update opacity for views that hide when shifted. (#4170) (featherless)
ShadowElevations
๐ Changes
- Expose BottomNavigationBar elevation (#4194) (Robert Moore)