v69.0.0
This major release introduces a breaking change with Snackbar's default style. It also includes
a new top handle and performance improvements for NavigationDrawer.
Breaking changes
usesLegacySnackbar is now NO by default.
New features
MDCBottomNavigationBar has a new elevation property.
NavigationDrawer has the following changes:
- Added support for content in the drawer that is dynamically sized. Updating the
preferredContentSize at any time will cause the drawer to respond appropriately. - Added a top handle that sits at the top of the drawer to show scrollability. It disappears
when the drawer goes to full screen or when there is no more to scroll. - Added a way to customize the color of the top handle.
- The drawer's header height expands as it goes to full screen to cover the safe area and status
bar. We now provide a delegate to allow clients to be aware of the relevant top content inset so
they lay out their header content appropriately based on height changes. - Implemented performance improvements by removing some calls to preferredContentSize of the
contentViewController within the drawer implementation.
API changes
AppBar+ColorThemer
MDCAppBarColorThemer(ToBeDeprecated)
modified class method: +applySurfaceVariantWithColorScheme:toAppBar: in MDCAppBarColorThemer(ToBeDeprecated)
modified class method: +applySemanticColorScheme:toAppBar: in MDCAppBarColorThemer(ToBeDeprecated)
AppBar+TypographyThemer
MDCAppBarTypographyThemer(ToBeDeprecated)
modified class method: +applyTypographyScheme:toAppBar: in MDCAppBarTypographyThemer(ToBeDeprecated)
BottomNavigation
MDCBottomNavigationBar
new property: elevation in MDCBottomNavigationBar
NavigationDrawer
MDCBottomDrawerViewControllerDelegate
new protocol: MDCBottomDrawerViewControllerDelegate
new method: -bottomDrawerControllerDidChangeTopInset:topInset: in MDCBottomDrawerViewControllerDelegate
MDCBottomDrawerPresentationController
new property: topHandleHidden in MDCBottomDrawerPresentationController
new property: topHandleColor in MDCBottomDrawerPresentationController
MDCBottomDrawerViewController
new property: topHandleColor in MDCBottomDrawerViewController
new property: delegate in MDCBottomDrawerViewController
new property: topHandleHidden in MDCBottomDrawerViewController
Component changes
ActionSheet
- Add example comparing Material and UIKit (#5724) (ianegordon)
- Try to fix MaterialComponentsAlpha (#5541) (Andrew Overton)
AppBar
- Annotate APIs that need to be deprecated. (#5614) (featherless)
BottomNavigation
- Add elevation property (#5733) (Cody Weaver)
- Minor code clean-up. (#5742) (Robert Moore)
NavigationDrawer
- Add dynamically sizing support for the drawer + performance improvements (#5587) (Yarden Eitan)
- Added Color API for the top handle. (#5592) (Yarden Eitan)
- Added a top handle to the drawer (#5591) (Yarden Eitan)
- Adding a top inset delegate for the drawer (#5674) (Yarden Eitan)
- added additional example with limited content that doesnt reach fullscreen (#5743) (Yarden Eitan)
- call getter instead (#5710) (Yarden Eitan)
Snackbar
- Fix for Snackbar themer breaking Snackbar examples on dragons (#5731) (Yarden Eitan)
- change snackbar to default to use the new snackbar and not legacy (#5732) (Yarden Eitan)
Multi-component changes
- [MDC Swift] Add guards for Swift 4.2+ (#5634) (Robert Moore)
- Global replace of integral single-precision literals with integer literals. (#5709) (Robert Moore)
- Global replace of single-precision floats with CGFloat casts. (#5718) (Robert Moore)
- No longer using
-initfor Color Scheme. (#5734) (Robert Moore) - fix typo UIConnect... -> UIContent... (#5735) (Ralph)