v82.0.0
In this major release, we dropped support for iOS 8 in all components. We also introduced new method and properties for AppBar, BottomSheet and NavigationDrawer.
Breaking changes
This release drops support for iOS 8 and the library, catalog, examples, and demos may no longer build for iOS 8 targets or may crash even if building succeeds. Clients will need to set their minimum deployment targets to iOS 9 or later.
New features
Add support for MDCAppBarNavigationController delegate to pick a tracking scroll view
An optional delegate method was added to allow clients to specify the controller's tracking scroll view. The delegate may return nil if no appropriate tracking scroll view is present.
Swift
func appBarNavigationController(_ navigationController: MDCAppBarNavigationController,
trackingScrollViewFor trackingScrollViewForViewController: UIViewController,
suggestedTrackingScrollView: UIScrollView?) -> UIScrollView? {
return trackingScrollView
}Objective-C
- (UIScrollView *)appBarNavigationController:(MDCAppBarNavigationController *)navigationController
trackingScrollViewForViewController:(UIViewController *)viewController
suggestedTrackingScrollView:(UIScrollView *)scrollView {
return self.trackingScrollView;
}flashScrollIndicators in BottomSheet
MDCBottomSheetController has a new API that will flash the scroll indicators when the view appears.
Swift
bottomSheet.shouldFlashScrollIndicatorsOnAppearance = true;Objective-C
self.bottomSheet.shouldFlashScrollIndicatorsOnAppearance = YES;maximumInitialDrawerHeight in NavigationDrawer
Clients can now override the initial drawer height on MDCBottomDrawerViewController with a desired height in points.
Swift
bottomDrawer.maximumInitialDrawerHeight = 1000;Objective-C
self.bottomDrawer.maximumInitialDrawerHeight = 1000;API changes
AppBar
MDCAppBarNavigationControllerDelegate
new method: -appBarNavigationController:trackingScrollViewForViewController:suggestedTrackingScrollView: in MDCAppBarNavigationControllerDelegate
BottomSheet
MDCBottomSheetController
new property: shouldFlashScrollIndicatorsOnAppearance in MDCBottomSheetController
NavigationDrawer
MDCBottomDrawerViewController
new property: maximumInitialDrawerHeight in MDCBottomDrawerViewController
MDCBottomDrawerPresentationController
new property: maximumInitialDrawerHeight in MDCBottomDrawerPresentationController
Tabs+Theming
New extension.
Component changes
Multi-component breaking changes
Changes
AppBar
- Add support for MDCAppBarNavigationController delegate to pick a tracking scroll view. (#7015) (featherless)
- Update AppBar theming extension docs. (#7125) (Wenyu Zhang)
BottomNavigation
BottomSheet
- Add API to flashScrollIndicators (#7127) (Cody Weaver)
Buttons
- Add snapshot test for new Ripple behavior (#7104) (Cody Weaver)
Dialogs
- Correct snapshot test layout (#7134) (Robert Moore)
- Dialog Urdu snapshot (#7139) (Wenyu Zhang)
- Layout MDC Dialogs correctly for tall fonts. (#7126) (Wenyu Zhang)
- fix dialog snapshot tests not using preferredContentSize. (#7128) (Wenyu Zhang)
NavigationDrawer
- Add snapshot tests (#7136) (Robert Moore)
- Added support for customizing the initial drawer height factor (#7112) (Yarden Eitan)
- remove dependency on MDCBottomDrawerContainerViewController (#7138) (Yarden Eitan)
Tabs
- Add theming extension for Tabs (#7089) (Wenyu Zhang)
TextFields
- Change wording on MDCTextInputController theming extensions doc comments (#7107) (Andrew Overton)
- Outlined Textfield Theming Extension (#7082) (Andrew Overton)
- Updates to MDCContainedInputView and SimpleTextField (#6904) (Andrew Overton)
Multi-component changes
- Fix some CGFloat conversion. (#7130) (Wenyu Zhang)