v73.0.0
73.0.0
This is a major release that introduces copy semantics in MDCShapeCategory, part of the Shapes scheme. Also in this release is a new API in NavigationDrawer that provides a way to expand the bottom drawer to full height.
New features
NavigationDrawer expansion
The NavigationDrawer component's MDCBottomDrawerViewController has a new API
that allows clients to programmatically expand the bottom drawer to the full
height of the presenting view.
Example (Swift)
drawerVC.expandToFullscreen(withDuration: 0.2, completion: { finished in
if finished {
print("expansion complete");
} else {
print("expansion cancelled");
}
})API changes
ActionSheet+Theming
New extension.
NavigationDrawer
MDCBottomDrawerViewController
new method: -expandToFullscreenWithDuration:completion: in MDCBottomDrawerViewController
MDCBottomDrawerPresentationController
new method: -expandToFullscreenWithDuration:completion: in MDCBottomDrawerPresentationController
ShapeScheme
MDCShapeCategory
modified property: bottomLeftCorner in MDCShapeCategory
| Type of change: | Declaration |
|---|---|
| From: | @property(strong, nonatomic) MDCCornerTreatment *bottomLeftCorner |
| To: | @property(nonatomic, copy) MDCCornerTreatment *bottomLeftCorner |
modified class: MDCShapeCategory
| Type of change: | Swift declaration |
|---|---|
| From: | class MDCShapeCategory : NSObject |
| To: | class MDCShapeCategory : NSObject, NSCopying |
modified class: MDCShapeCategory
| Type of change: | Declaration |
|---|---|
| From: | @interface MDCShapeCategory : NSObject |
| To: | @interface MDCShapeCategory : NSObject <NSCopying> |
modified property: bottomRightCorner in MDCShapeCategory
| Type of change: | Declaration |
|---|---|
| From: | @property(strong, nonatomic) MDCCornerTreatment *bottomRightCorner |
| To: | @property(nonatomic, copy) MDCCornerTreatment *bottomRightCorner |
modified property: topLeftCorner in MDCShapeCategory
| Type of change: | Declaration |
|---|---|
| From: | @property(strong, nonatomic) MDCCornerTreatment *topLeftCorner |
| To: | @property(nonatomic, copy) MDCCornerTreatment *topLeftCorner |
modified property: topRightCorner in MDCShapeCategory
| Type of change: | Declaration |
|---|---|
| From: | @property(strong, nonatomic) MDCCornerTreatment *topRightCorner |
| To: | @property(nonatomic, copy) MDCCornerTreatment *topRightCorner |
Component changes
Changes
ActionSheet
- Update examples (#5979) (Cody Weaver)
BottomNavigation
- Initial implementation of the Bottom Navigation Controller (#5886) (Eric Lee)
- Revert "[BottomNavigation]Adds Initial tests for MDCBottomNavigationBarController" (#6039) (Robert Moore)
- [BottomNavigation]Adds Initial tests for MDCBottomNavigationBarController (#6012) (Eric Lee)
BottomSheet
- fix bottom sheet layout for safe area (#6024) (Yarden Eitan)
FlexibleHeader
NavigationDrawer
- Attempt to fix header shadow not being removed (#6010) (Michael Cheung)
- Navigation Drawer Present at Fullscreen (#5995) (Yarden Eitan)
TextFields
- Refactor test classes to use subclassing. (#6008) (Robert Moore)
- "Filled" snapshots use abstract class (#6013) (Robert Moore)
- "FullWidth" snapshots use abstract class (#6014) (Robert Moore)
- "SimpleTextField" Example Prototype (#6003) (Andrew Overton)
- Add "unfloating" filled style snapshots. (#5997) (Robert Moore)
- Add Baseline Filled snapshots. (#6029) (Robert Moore)
- Add FullWidth snapshots with character counts. (#6025) (Robert Moore)
- Add
isEditingsnapshots for Filled style (#5988) (Robert Moore) - Add
isEditingsnapshots for Full Width (#5989) (Robert Moore) - Add
isEditingsnapshots for Outlined Text Area (#5994) (Robert Moore) - Add
isEditingsnapshots for Outlined style (#5990) (Robert Moore) - Add
leadingImagesnapshots. (#6028) (Robert Moore) - Add clearButton to Outlined TextArea (#5992) (Robert Moore)
- Add extension for theming (#5975) (Cody Weaver)
- Add snapshots for
disabledstate (#6026) (Robert Moore) - Add snapshots for outlined, baseline, character counts. (#6001) (Robert Moore)
- Add underlined snapshot tests. (#6021) (Robert Moore)
- Allow animations to execute in tests. (#5987) (Robert Moore)
- Incomplete snapshot RTL/Arabic support (#6023) (Robert Moore)
- Outlined TextArea uses abstract test class (#6017) (Robert Moore)
- Outlined controller snapshots use abstract class (#6019) (Robert Moore)
- Outlined, themed snapshots use abstract class (#6016) (Robert Moore)
- Outlined, themed, character count tests use abstract class. (#6015) (Robert Moore)
- Refactor snapshot test class (#5982) (Robert Moore)
- Refactor snapshot tests into abstract class. (#6009) (Robert Moore)
- Refactor textArea snapshot tests. (#5991) (Robert Moore)
- Refactor: Move
recordModeto-setUp(#5998) (Robert Moore)
schemes/Shape
Multi-component changes
- Pin all swift_library targets to Swift 3. (#6000) (featherless)
- Ran buildifier against all BUILD files. (#5999) (featherless)
- Rename MaterialComponentsAlpha to MaterialComponentsBeta. (#6018) (featherless)
- Update bazel to 0.20 and all dependencies as a result (#5926) (featherless)
- add hash function to MDCCornerTreatment (#5954) (Wenyu Zhang)