v68.1.0
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
- Fix rotation bug (#5505) (Cody Weaver)
AppBar
List
- Use ListThemer for List example (#5502) (Andrew Overton)
- [List Items] Improve BiDi example performance. (#5506) (Robert Moore)
NavigationDrawer
- Added a state system to the Nav Drawer (#5520) (Yarden Eitan)
- Added a top corners radius for state API. (#5543) (Yarden Eitan)
- Fix the init of the MDCBottomDrawerViewController to use the designated inits (#5546) (guylivneh)
- [BottomDrawer] Adding an example for dynamically changing content size (#5545) (guylivneh)
Snackbar
schemes/Color
- Fix pod name (#5532) (Cody Weaver)
schemes/Typography
- Fix pod name (#5532) (Cody Weaver)