Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

v84.6.0

Choose a tag to compare

@codeman7 codeman7 released this 11 Jun 12:43
· 3008 commits to stable since this release

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 = true

NavigationDrawer 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 = true

API changes

ActionSheet

new property: alwaysAlignTitleLeadingEdges in MDCActionSheetController

NavigationDrawer

new property: shouldIncludeSafeAreaInContentHeight in MDCBottomDrawerViewController
new property: shouldIncludeSafeAreaInContentHeight in MDCBottomDrawerPresentationController

Component changes

Changes

ActionSheet

Buttons

List

MaskedTransition

NavigationDrawer

Ripple

Tabs

schemes/Typography

Multi-component changes