This repository was archived by the owner on Dec 11, 2025. It is now read-only.
v84.6.0
In this minor release we added new features to ActionSheet and NavigationDrawer, as well as additional tests and bug fixes.
New features
ActionSheet now allows clients to align all titles regardless of if an image is present or not.
let actionSheet = MDCActionSheetController()
let actionOne = MDCActionSheetAction(title: "Email",
image: nil) { (_) in
print("Email action") }
let actionTwo = MDCActionSheetAction(title: "Cancel",
image: UIImage(named: "CancelImage")) { (_) in
print("Cancel action") }
actionSheet.addAction(actionOne)
actionSheet.addAction(actionTwo)
actionSheet.alwaysAlignTitleLeadingEdges = trueNavigationDrawer now allows clients to automatically include the safeAreaInsets in the content height calculation.
By enabling this flag the MDCBottomDrawerViewController will add the safeAreaInsets.bottom to the preferredContentSize.height
of the contentViewController.
let navigationDrawer = MDCBottomDrawerViewController()
navigationDrawer.shouldIncludeSafeAreaInContentHeight = trueAPI changes
ActionSheet
new property: alwaysAlignTitleLeadingEdges in MDCActionSheetController
NavigationDrawer
new property: shouldIncludeSafeAreaInContentHeight in MDCBottomDrawerViewController
new property: shouldIncludeSafeAreaInContentHeight in MDCBottomDrawerPresentationController
Component changes
Changes
ActionSheet
- Add snapshot test for when only some actions have images. (#7547) (Cody Weaver)
- Allow clients to align titles if only some actions have images. (#7548) (Cody Weaver)
Buttons
List
- Fix self sizing layout in iOS 13 (#7536) (Andrew Overton)
MaskedTransition
- Fix infinite loops in masked transition example (#7519) (Andrew Overton)
NavigationDrawer
- Include safe area insets in content height (#7545) (Yarden Eitan)
- update (#7544) (Yarden Eitan)
Ripple
- Add snapshot test for
maximumRadiusAPI. #7538 (Cody Weaver)
Tabs
- Give MDCTabBarDelegate pass through methods for "willDisplayCell"/"didEndDisplayingCell" (#7518) (Andrew Overton)
- Revert "[Tabs] Give MDCTabBarDelegate pass through methods for "willDisplayCell"/"didEndDisplayingCell" (#7518)" (Cody Weaver)
schemes/Typography
- Fix issue within the docs (#7543) (Cody Weaver)
Multi-component changes
- Fix typo (#7541) (Andrew Overton)