v85.9.0
This minor release includes new elevation protocols to prepare for Dark Mode, dynamic color
support in several components, and a number of MDCTabBarView features.
New features
Several components support traitCollectionDidChangeBlock to allow clients inject a block for exection when traitCollections
changes. TabBarView allows clients to set preferred layout style.
API changes
ActionSheet
MDCActionSheetController
new property: traitCollectionDidChangeBlock in MDCActionSheetController
ActivityIndicator
MDCActivityIndicator
new property: traitCollectionDidChangeBlock in MDCActivityIndicator
Banner
MDCBannerView
new property: traitCollectionDidChangeBlock in MDCBannerView
BottomAppBar
MDCBottomAppBarView
new property: traitCollectionDidChangeBlock in MDCBottomAppBarView
BottomSheet
MDCBottomSheetController
new property: traitCollectionDidChangeBlock in MDCBottomSheetController
MDCBottomSheetPresentationController
new property: traitCollectionDidChangeBlock in MDCBottomSheetPresentationController
ButtonBar
MDCButtonBar
new property: traitCollectionDidChangeBlock in MDCButtonBar
Cards
MDCCard
new property: traitCollectionDidChangeBlock in MDCCard
MDCCardCollectionCell
new property: traitCollectionDidChangeBlock in MDCCardCollectionCell
Chips
MDCChipView
new property: traitCollectionDidChangeBlock in MDCChipView
Dialogs
MDCAlertController
new property: shadowColor in MDCAlertController
new property: traitCollectionDidChangeBlock in MDCAlertController
MDCDialogPresentationController
new property: dialogShadowColor in MDCDialogPresentationController
new property: traitCollectionDidChangeBlock in MDCDialogPresentationController
Elevation
MDCElevatable
new property: mdc_currentElevation in MDCElevatable
new property: mdc_elevationDidChangeBlock in MDCElevatable
new protocol: MDCElevatable
MDCElevatableOverriding
new property: mdc_overrideBaseElevation in MDCElevatable
new protocol: MDCElevatableOverriding
List
MDCBaseCell
new property: traitCollectionDidChangeBlock in MDCBaseCell
NavigationDrawer
MDCBottomDrawerPresentationController
new property: traitCollectionDidChangeBlock in MDCBottomDrawerPresentationController
MDCBottomDrawerViewController
new property: traitCollectionDidChangeBlock in MDCBottomDrawerViewController
Ripple
MDCRippleView
new property: activeRippleColor in MDCRippleView
removed method: -setActiveRippleColor: in MDCRippleView
Slider
MDCSlider
new property: thumbShadowColor in MDCSlider
Tabs
MDCTabBarView
new enum value: MDCTabBarViewLayoutStyleFixed in MDCTabBarView
new enum value: MDCTabBarViewLayoutStyleScrollable in MDCTabBarView
new enum value: MDCTabBarViewLayoutStyleFixedClusteredCentered in MDCTabBarView
new enum value: MDCTabBarViewLayoutStyleFixedClusteredLeading in MDCTabBarView
new enum value: MDCTabBarViewLayoutStyleFixedClusteredTrailing in MDCTabBarView
new enum: MDCTabBarViewLayoutStyle
new typedef: MDCTabBarViewLayoutStyle
new property: preferredLayoutStyle in MDCTabBarView
new property: selectionChangeAnimationDuration in MDCTabBarView
new property: selectionChangeAnimationTimingFunction in MDCTabBarView
Component changes
ActionSheet
- Add traitCollectionDidChange block (#7929) (Cody Weaver)
ActivityIndicator
- Add traitCollectionDidChange block (#7931) (Cody Weaver)
- Support dynamic color (#7950) (Cody Weaver)
Banner
- Add traitCollectionDidChangeBlock API. (#7948) (Wenyu Zhang)
- Add two test cases with icons. (#7989) (Wenyu Zhang)
- Use Arabic for RTL snapshot test (#8010) (Wenyu Zhang)
- add snapshot test for middle length text with large layout margin. (#7957) (Wenyu Zhang)
- fix layout margin not being considered for all layout styles. (#7956) (Wenyu Zhang)
BottomAppBar
- Add traitCollectionDidChange block (#7930) (Cody Weaver)
- add support for dynamic color. (#7975) (Wenyu Zhang)
BottomNavigation
- Add snapshot tests for Bottom Navigation controller. (#7963) (Robert Moore)
- Controller positions content behind the bar (#7970) (Robert Moore)
- Remove iOS 9 guards. (#7997) (Robert Moore)
- Update example to demonstrate lazy loading. (#7991) (Robert Moore)
BottomSheet
- add traitCollectionDidChangeBlock support. (#7966) (Wenyu Zhang)
ButtonBar
- add traitCollectionDidChangeBlock support. (#7976) (Wenyu Zhang)
Cards
- Add Cards dynamic color support (#7906) (Andrew Overton)
- Add traitCollectionDidChange block to MDCCard (#8006) (Cody Weaver)
- Add traitCollectionDidChange block to MDCCardCollectionCell (#8007) (Cody Weaver)
Chips
- Add Dynamic Color Support for Chips (#7946) (Andrew Overton)
- Add traitCollectionDidChangeBlock (#7980) (Bryan Oltman)
Dialogs
- Add shadow color API (#7911) (Cody Weaver)
- Add traitCollectionDidChangeBlock to MDCAlertController (#7981) (Bryan Oltman)
- Remove iOS 9 guards. (#7998) (Robert Moore)
Elevation
- Add MDCElevation protocol. (#7955) (Cody Weaver)
- Add elevationDidChangeBlock to MDCElevation protocol (#7962) (Cody Weaver)
- Add property mdc_overrideElevation property (#7965) (Cody Weaver)
- Add second protocol for overrides (#8034) (Cody Weaver)
- Add MDCElevationOverride to umbrella header (#8052) (Robert Moore)
- Improve protocol naming (#8055) (Yarden Eitan)
- Add category to UIView (#7969) (Cody Weaver)
- passing self to the elevationDidChangeBlock (#8058) (Yarden Eitan)
FeatureHighlight
- Support dynamic color (#7936) (Bryan Oltman)
FlexibleHeader
Ink
- Dynamic color support (#7974) (Yarden Eitan)
List
NavigationDrawer
- Add traitCollectionDidChange block (#8008) (Cody Weaver)
- Add traitCollectionDidChange block to presentation controller. (#8009) (Cody Weaver)
private/Snapshot
- add support to change TextInput to RTL mode. (#7986) (Wenyu Zhang)
Ripple
- Add dynamic color support for ripple. (#7968) (Yarden Eitan)
- Turn activeRippleColor into a property (#7949) (Yarden Eitan)
- Fix active ripple layer not using active ripple color. (#8059) (Wenyu Zhang)
Slider
- Add snapshot test for dynamic color with elevation. (#7960) (Wenyu Zhang)
- change track background color. (#7967) (Wenyu Zhang)
- Add shadowColor to support dynamic color behavior. (#7972) (Wenyu Zhang)
Tabs
- Allow clients to set preferred layout style. (#8003) (Robert Moore)
- Drop iOS 9 guards. (#7999) (Robert Moore)
- Expose selection change animation properties. (#7944) (Robert Moore)
- Support Fixed Clustered layout when Justified won't fit. (#7908) (Robert Moore)
- Support Leading, Trailing Fixed Clustered Layout styles. (#8002) (Robert Moore)
- Tabs dynamic color (#7977) (Andrew Overton)
TextFields
- Remove iOS 9 guards. (#8000) (Robert Moore)
- Use new Snapshot RTL methods. (#7994) (Robert Moore)
Multi-component changes
- Drop iOS 9 guards for Swift. (#8001) (Robert Moore)
- Remove RTL snapshot method overrides. (#7996) (Robert Moore)