Material Components v85.9.0 Release Notes
Release Date: 2019-07-24 // almost 5 years ago-
๐ 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
inMDCActionSheetController
ActivityIndicator
MDCActivityIndicator
๐ new property:
traitCollectionDidChangeBlock
inMDCActivityIndicator
Banner
MDCBannerView
๐ new property:
traitCollectionDidChangeBlock
inMDCBannerView
BottomAppBar
MDCBottomAppBarView
๐ new property:
traitCollectionDidChangeBlock
inMDCBottomAppBarView
BottomSheet
MDCBottomSheetController
๐ new property:
traitCollectionDidChangeBlock
inMDCBottomSheetController
MDCBottomSheetPresentationController
๐ new property:
traitCollectionDidChangeBlock
inMDCBottomSheetPresentationController
ButtonBar
MDCButtonBar
๐ new property:
traitCollectionDidChangeBlock
inMDCButtonBar
Cards
MDCCard
๐ new property:
traitCollectionDidChangeBlock
inMDCCard
MDCCardCollectionCell
๐ new property:
traitCollectionDidChangeBlock
inMDCCardCollectionCell
Chips
MDCChipView
๐ new property:
traitCollectionDidChangeBlock
inMDCChipView
๐ Dialogs
MDCAlertController
๐ new property:
shadowColor
inMDCAlertController
๐ new property:
traitCollectionDidChangeBlock
inMDCAlertController
MDCDialogPresentationController
๐ new property:
dialogShadowColor
inMDCDialogPresentationController
๐ new property:
traitCollectionDidChangeBlock
inMDCDialogPresentationController
Elevation
MDCElevatable
๐ new property:
mdc_currentElevation
inMDCElevatable
๐ new property:
mdc_elevationDidChangeBlock
inMDCElevatable
๐ new protocol:
MDCElevatable
MDCElevatableOverriding
๐ new property:
mdc_overrideBaseElevation
inMDCElevatable
๐ new protocol:
MDCElevatableOverriding
List
MDCBaseCell
๐ new property:
traitCollectionDidChangeBlock
inMDCBaseCell
NavigationDrawer
MDCBottomDrawerPresentationController
๐ new property:
traitCollectionDidChangeBlock
inMDCBottomDrawerPresentationController
MDCBottomDrawerViewController
๐ new property:
traitCollectionDidChangeBlock
inMDCBottomDrawerViewController
Ripple
MDCRippleView
๐ new property:
activeRippleColor
inMDCRippleView
โ removed method:
-setActiveRippleColor:
inMDCRippleView
Slider
MDCSlider
๐ new property:
thumbShadowColor
inMDCSlider
Tabs
MDCTabBarView
๐ new enum value:
MDCTabBarViewLayoutStyleFixed
inMDCTabBarView
๐ new enum value:
MDCTabBarViewLayoutStyleScrollable
inMDCTabBarView
๐ new enum value:
MDCTabBarViewLayoutStyleFixedClusteredCentered
inMDCTabBarView
๐ new enum value:
MDCTabBarViewLayoutStyleFixedClusteredLeading
inMDCTabBarView
๐ new enum value:
MDCTabBarViewLayoutStyleFixedClusteredTrailing
inMDCTabBarView
๐ new enum:
MDCTabBarViewLayoutStyle
๐ new typedef:
MDCTabBarViewLayoutStyle
๐ new property:
preferredLayoutStyle
inMDCTabBarView
๐ new property:
selectionChangeAnimationDuration
inMDCTabBarView
๐ new property:
selectionChangeAnimationTimingFunction
inMDCTabBarView
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)