Material Components v85.8.0 Release Notes
Release Date: 2019-07-18 // almost 5 years ago-
๐ This minor release includes two new default color schemes and elevation properties to prepare for Dark Mode, dynamic color ๐ support in several components, Haptics feature in Slider, and a number of MDCTabBarView features.
๐ New features
๐ Several components support
traitCollectionDidChangeBlock
to allow clients inject a block for exection when traitCollections ๐ changes. Slider supports Haptics feature.API changes
AppBar
MDCAppBar
๐ new property:
traitCollectionDidChangeBlockForAppBarController
inMDCAppBarNavigationController
BottomNavigation
MDCBottomNavigationBar
๐ new property:
traitCollectionDidChangeBlock
inMDCBottomNavigationBar
Buttons
MDCButton
๐ new property:
traitCollectionDidChangeBlock
inMDCButton
FlexibleHeader
MDCFlexibleHeaderContainerViewController
๐ new property:
traitCollectionDidChangeBlock
inMDCFlexibleHeaderContainerViewController
MDCFlexibleHeaderView
๐ new property:
shadowColor
inMDCFlexibleHeaderView
๐ new property:
traitCollectionDidChangeBlock
inMDCFlexibleHeaderView
MDCFlexibleHeaderViewController
๐ new property:
traitCollectionDidChangeBlock
inMDCFlexibleHeaderViewController
NavigationBar
MDCNavigationBar
๐ new property:
traitCollectionDidChangeBlock
inMDCNavigationBar
NavigationDrawer
MDCBottomDrawerContainerViewController
๐ new property:
headerShadowColor
inMDCBottomDrawerContainerViewController
Slider
MDCSlider
๐ new property:
shouldEnableHapticsForAllDiscreteValues
inMDCSlider
Snackbar
MDCSnackbarManager
๐ new property:
messageElevation
inMDCSnackbarManager
MDCSnackbarMessageView
๐ new property:
elevation
inMDCSnackbarMessageView
๐ new property:
traitCollectionDidChangeBlock
inMDCSnackbarMessageView
Tabs+TabBarView
MDCTabBarView
๐ new method:
-rectForItem:inCoordinateSpace:
inMDCTabBarView
schemes/Color
MDCColorScheming
๐ new property:
elevationOverlayColor
inMDCColorScheming
๐ new property:
elevationOverlayEnabledForDarkMode
inMDCColorScheming
MDCSemanticColorScheme
๐ new property:
elevationOverlayColor
inMDCSemanticColorScheme
๐ new property:
elevationOverlayEnabledForDarkMode
inMDCSemanticColorScheme
Component changes
AppBar
- 0๏ธโฃ Add
defaultTraitCollectionDidChangeBlock
for injecting into AppBars. (#7887) (Robert Moore) - Add
traitCollectionDidChangeBlock
to AppBarViewController. (#7851) (Robert Moore) - Provide app bar parameter for traitCollectionDidChange block. (#7888) (Robert Moore)
Banner
- ๐ fix dynamic type support for attributed string. (#7820) (Wenyu Zhang)
BottomNavigation
- Add shadowColor API. (#7910) (Cody Weaver)
- Add
traitCollectionDidChangeBlock
API. (#7893) (Robert Moore)
Buttons
- ๐ Add dynamic color support (#7914) (Cody Weaver)
- ๐ Add dynamic color support to MDCButton (#7858) (Cody Weaver)
- add traitCollectionDidChangeBlock API. (#7853) (Wenyu Zhang)
FlexibleHeader
- ๐ Add dynamic color support to flexible header (#7904) (Cody Weaver)
- Add traitCollectionDidChangeBlock (#7915) (Cody Weaver)
- Add traitCollectionDidChangeBlock (#7922) (Cody Weaver)
- โ Add unit test for the shadow layer (#7909) (Cody Weaver)
- Add traitCollectionDidChange block (#7917) (Cody Weaver)
NavigationBar
- Add traitCollectionDidChange block. (#7918) (Cody Weaver)
NavigationDrawer
ProgressView
- Provide unique names for methods. (#7824) (Robert Moore)
Shapes
- ๐ Fix memory leak in -[MDCRectangleShapeGenerator pathForSize:] by returning an autoreleased CGPathRef (#7913) (Julien Poumailloux)
Slider
Snackbar
- Add button styling properties to MDCSnackbarManager (#7832) (Bryan Oltman)
- Add traitCollectionDidChangeBlock API (#7903) (Bryan Oltman)
- Allow clients to customize elevation (#7844) (Cody Weaver)
- ๐ Support dynamic color (#7905) (Bryan Oltman)
- Use MDCShadowLayer instead of UIKit shadows (#7843) (Cody Weaver)
Tabs
- Add
accessibilityElementForItem:
API. (#7818) (Robert Moore) - Add
setSelected:animated:
API for custom views. (#7810) (Robert Moore) - Add bottom divider. (#7817) (Robert Moore)
- ๐ Add item style options for TabBarView example. (#7808) (Robert Moore)
- โ Add snapshot tests for contentInset on MDCTabBarView. (#7815) (Robert Moore)
- ๐ Add support for
selectedImage
from UITabBarItem. (#7814) (Robert Moore) - Adjust sizeThatFits: behavior for TabBarView. (#7846) (Robert Moore)
- Allow clients to calculate when a view appears/disappears. (#7841) (Robert Moore)
- โ Combine "default" unit tests. (#7822) (Robert Moore)
- Don't handle
contentInset
directly in layout. (#7816) (Robert Moore) - Fix crash when assigning
nil
for KVO'd title. (#7806) (Robert Moore) - Fix segmented control position. (#7898) (Robert Moore)
- Fix title-only example. (#7897) (Robert Moore)
- ๐จ Minor refactoring of KVO code. (#7825) (Robert Moore)
- Retain custom view in example. (#7901) (Robert Moore)
TextFields
- ๐ Textfields dynamic color support (#7889) (Andrew Overton)
private/Color
- ๐ Add UIColor+MaterialDynamic to support dynamic color. (#7860) (Wenyu Zhang)
private/Snapshot
- ๐ added ios13 support for snapshots (#7861) (Yarden Eitan)
schemes/Color
- 0๏ธโฃ Add a default color scheme for Dark mode. (#7831) (Wenyu Zhang)
- 0๏ธโฃ Add dynamic color scheme MDCColorSchemeDefaultsMaterial201907. (#7848) (Wenyu Zhang)
- Use UIColor method instead of static method to generate (#7894) (Wenyu Zhang)
- add two properties for elevation overlay color in color (#7924) (Wenyu Zhang)
- 0๏ธโฃ Add