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

v68.1.0

Choose a tag to compare

@yarneo yarneo released this 31 Oct 14:48
· 4138 commits to stable since this release

In this minor release we have added a top corners API and a state system for Navigation Drawer along with bug fixes and additional examples.

New features

By using Navigation Drawer's MDCBottomDrawerViewController, you can now set the top corners radius of your drawer for each of its
different presentation states MDCBottomDrawerState.

let bottomDrawerViewController = MDCBottomDrawerViewController()
// Set the drawer top corners for the drawer states.
bottomDrawerViewController.setTopCornersRadius(24, for: .collapsed)
bottomDrawerViewController.setTopCornersRadius(8, for: .expanded)

bottomDrawerViewController.contentViewController = contentViewController
bottomDrawerViewController.headerViewController = headerViewController
MDCBottomDrawerColorThemer.applySemanticColorScheme(colorScheme,
                                                    toBottomDrawer: bottomDrawerViewController)
present(bottomDrawerViewController, animated: true, completion: nil)

API changes

NavigationDrawer

MDCBottomDrawerViewController

new method: -topCornersRadiusForDrawerState: in MDCBottomDrawerViewController

new method: -setTopCornersRadius:forDrawerState: in MDCBottomDrawerViewController

new property: drawerState in MDCBottomDrawerViewController

modified class: MDCBottomDrawerViewController

Type of change: Swift declaration
From: class MDCBottomDrawerViewController : UIViewController
To: class MDCBottomDrawerViewController : UIViewController, MDCBottomDrawerPresentationControllerDelegate

modified class: MDCBottomDrawerViewController

Type of change: Declaration
From: @interface MDCBottomDrawerViewController : UIViewController
To: @interface MDCBottomDrawerViewController : UIViewController <MDCBottomDrawerPresentationControllerDelegate>

MDCBottomDrawerState

new enum: MDCBottomDrawerState

new enum value: MDCBottomDrawerStateExpanded in MDCBottomDrawerState

new enum value: MDCBottomDrawerStateCollapsed in MDCBottomDrawerState

new typedef: MDCBottomDrawerState

new enum value: MDCBottomDrawerStateFullScreen in MDCBottomDrawerState

MDCBottomDrawerPresentationController

new property: delegate in MDCBottomDrawerPresentationController

MDCBottomDrawerPresentationControllerDelegate

new method: -bottomDrawerWillChangeState:drawerState: in MDCBottomDrawerPresentationControllerDelegate

new method: -bottomDrawerTopTransitionRatio:transitionRatio: in MDCBottomDrawerPresentationControllerDelegate

new protocol: MDCBottomDrawerPresentationControllerDelegate

Component changes

ActionSheet

AppBar

List

NavigationDrawer

Snackbar

schemes/Color

schemes/Typography