v85.10.0
85.10.0
This minor release expands support for trait collection and Material Elevation
changes in several components. Bottom Sheet and Navigation Drawer now support
shadows and elevation.
Breaking changes
The following breaking changes were made for Beta components that are not
published to CocoaPods.
MDCBottomNavigationBarController
now positions child view controllers'
views behind the Bottom Navigation bar.MDCBannerView
now uses aUITextView
for the message text instead of a
UILabel
.
New features
Several more components received APIs that allow responding to
UITraitCollection
changes. Assigning a traitCollectionDidBlock
on a
supported component enables code to be executed in the component's
traitCollectionDidChange:
method without subclassing.
Support for Material Elevation expanded to several more components. APIs to
support overriding the computed value for mdc_baseElevation
and to respond to
elevation changes are available. Assigning an elevationDidChangeBlock
on a
supported component enables code to be executed whenever the component's
elevation changes. This may include state-based elevation changes (like
pressing on a Chip) or when the component's elevation value is changed
programmatically.
The Bottom Sheet component, specifically MDCBottomSheetController
now renders
a shadow by default. This may cause a very slight change in the shading around
the edges of the view. If desired, non-elevated Bottom Sheets can be configured
by setting the elevation
property's value to 0
.
Likewise, the Navigation Drawer's MDCBottomDrawerPresentationController
renders a shadow by default. To disable the shadow or modify the drawer's
elevation, set the elevation
property to the desired value.
MDCBottomSheetController *bottomSheet =
[[MDCBottomSheetController alloc] initWithContentViewController:mySheetContentVC];
bottomSheet.elevation = 0;
MDCTabBarView
, currently in Beta, now provides an API to set its preferred
layout style.
MDCTabBarView *tabBarView = [[MDCTabBarView alloc] init];
tabBarView.preferredLayoutStyle = MDCTabBarViewLayoutStyleScrollable;
Changes
AppBar
Banner
- use UITextView for text instead of UILabel. (#7993) (Wenyu Zhang)
BottomAppBar
- Remove no-op tests. (#8072) (Robert Moore)
BottomNavigation
- Add MDCElevation support. (#8038) (Robert Moore)
- Deprecate
sizeThatFitsIncludesSafeArea
. (#8066) (Robert Moore) - Don't set
sizeThatFitsIncludesSafeArea
. (#8065) (Robert Moore) - Make KVO safe for
nil
. (#8083) (Robert Moore) - Store child VCs in
childViewControllers
. (#7992) (Robert Moore) - Test for
mdc_overrideBaseElevation
(#8075) (Robert Moore)
BottomSheet
- Add elevation property (#8089) (Cody Weaver)
Buttons
- Move MDCButton's defaultContentInset configuration to later in init (#8069) (Bryan Oltman)
- Support MaterialElevation. (#8073) (Robert Moore)
Cards
- CardCell Supports MaterialElevation. (#8079) (Yarden Eitan)
- MDCCard conforms to MDCElevation and MDCElevationOverride (#8054) (Yarden Eitan)
Chips
- Conform to MDCElevatable and MDCElevationOverriding. (#8068) (Robert Moore)
- Fix default value for mdc_overrideBaseElevation. (#8076) (Robert Moore)
Dialogs
- Add MaterialElevation support to AlertController. (#8098) (Robert Moore)
Elevation
- Add MDCElevationOverride to umbrella header (#8052) (Robert Moore)
- Add a UIColor category to support resolving color with elevation. (#8085) (Wenyu Zhang)
- Add absoluteElevation property and clarify the elevationDidChange block param (#8071) (Yarden Eitan)
- Add elevationDidChange method to UIView category (#8067) (Cody Weaver)
- Doc clarification (#8074) (Yarden Eitan)
- Improve protocol naming (#8055) (Yarden Eitan)
- passing self to the elevationDidChangeBlock (#8058) (Yarden Eitan)
- Add category to UIView (#7969) (Cody Weaver)
FeatureHighlight
- Add traitCollectionDidChange block (#8036) (Cody Weaver)
FlexibleHeader
HeaderStackView
- Add traitCollectionDidChange block (#8061) (Cody Weaver)
Ink
- Add traitCollectionDidChange block (#8064) (Cody Weaver)
- Fix documentation for enum types. (#8090) (Robert Moore)
List
- Support MaterialElevation. (#8078) (Robert Moore)
NavigationDrawer
- Adds an elevation and shadow to Bottom Drawer. (#8095) (Yarden Eitan)
- Adding MDCElevation support (#8100) (Yarden Eitan)
PageControl
- Add traitCollectionDidChange block (#8037) (Cody Weaver)
ProgressView
- Add traitCollectionDidChange block (#8035) (Cody Weaver)
Ripple
- Add traitCollectionDidChange block (#8062) (Cody Weaver)
- Fix active ripple layer not using active ripple color. (#8059) (Wenyu Zhang)
Slider
- Add traitCollectionDidChange block (#8057) (Cody Weaver)
Snackbar
- Supports MaterialElevation. (#8081) (Yarden Eitan)
Tabs
- Add traitCollectionDidChange block (#8056) (Cody Weaver)
- Add traitCollectionDidChange block (#8060) (Cody Weaver)
- Properties before methods. (#8063) (Robert Moore)
TextFields
- Add traitCollectionDidChange block (#8070) (Cody Weaver)
Typography
- Internal comments to explain font scaling. (#8087) (Robert Moore)
private/Color
- add method for regular color blending. (#8077) (Wenyu Zhang)
Multi-component changes
- Add conformance to MDCElevatable, MDCElevationOverriding (#8094) (Bryan Oltman)
- Correct
elevationDidChangeBlock
type. (#8106) (Robert Moore) - Create umbrella header. (#8091) (Robert Moore)