v70.0.0
This major change removes all property coding behavior from our components. It also includes
performance improvements for NavigationDrawer and a new API for adjusting its content offset.
PageControl now also supports RTL.
Breaking changes
Component properties are no longer encoded or decoded for any component.
New features
Improvements made to Navigation Drawer:
- Improvements to the Navigation Drawer's performance by removing unneeded calls to the
contentViewController's preferredContentSize. - A new API on
MDCBottomDrawerViewController:setContentOffsetY:contentOffsetY:animated:
allowing to manually scroll the content to the desired offset. Setting the contentOffsetY to 0
will scroll the drawer to the top of the content.
MDCPageControl has a new respectsUserInterfaceLayoutDirection property that, when enabled, causes
the page control to react to RTL layout.
API changes
Buttons
MDCFloatingButton
removed method: -initWithCoder: in MDCFloatingButton
Collections
MDCCollectionViewEditing
new method: -updateReorderCellPosition in MDCCollectionViewEditing
NavigationDrawer
MDCBottomDrawerViewController
new method: -setContentOffsetY:animated: in MDCBottomDrawerViewController
MDCBottomDrawerPresentationController
new property: contentReachesFullscreen in MDCBottomDrawerPresentationController
new method: -setContentOffsetY:animated: in MDCBottomDrawerPresentationController
PageControl
MDCPageControl
new property: respectsUserInterfaceLayoutDirection in MDCPageControl
Slider
MDCSlider
modified class: MDCSlider
| Type of change: | Swift declaration |
|---|---|
| From: | class MDCSlider : UIControl, NSSecureCoding |
| To: | class MDCSlider : UIControl |
modified class: MDCSlider
| Type of change: | Declaration |
|---|---|
| From: | @interface MDCSlider : UIControl <NSSecureCoding> |
| To: | @interface MDCSlider : UIControl |
ColorScheme
MDCTonalPalette
removed method: -initWithCoder: in MDCTonalPalette
modified class: MDCTonalPalette
| Type of change: | Swift declaration |
|---|---|
| From: | class MDCTonalPalette : NSObject, NSCopying, NSSecureCoding |
| To: | class MDCTonalPalette : NSObject, NSCopying |
modified class: MDCTonalPalette
| Type of change: | Declaration |
|---|---|
| From: | @interface MDCTonalPalette : NSObject <NSCopying, NSSecureCoding> |
| To: | @interface MDCTonalPalette : NSObject <NSCopying> |
Component changes
Breaking changes
Buttons
- Breaking: Remove property coding support from MDCFloatingButton and MDCFlatButton. (#5787) (featherless)
Multi-component breaking changes
- Breaking: Remove remaining property coding. (#5792) (featherless)
Changes
BottomNavigation
BottomSheet
- Add a Dragon to demonstrate issue #5778 (#5779) (danblakemore)
Collections
- Adds ability to programmatically update the position of the reordering cell (#5560) (Felix Emiliano)
Dialogs
- Add an Alert width upper bound (#4914) (ianegordon)
NavigationDrawer
- API to allow content to scroll to top (#5776) (Yarden Eitan)
- Improve performance for heavy preferredContentSize calls (#5744) (Yarden Eitan)
- Position handle using NSLayoutConstraints (#5760) (Andrew Overton)
PageControl
- Add respectsUserInterfaceLayoutDirection to MDCPageControl (#5711) (Andrew Overton)
Tabs
Multi-component changes
- Fix cross-component imports. (#5786) (Robert Moore)
- Fix cross-component imports. (#5794) (Robert Moore)
- Revert "[Dialogs, Shape] Fix cross-component imports. (#5786)" (#5793) (Robert Moore)