Material Components v77.0.0 Release Notes
-
🚀 In this release we made improvements to BottomNavigationBar and landed stateful ripple in the ripple (beta) component.
💥 Breaking changes
BottomNavigationBar
✂ Removed a deprecated API:
@property(nonatomic, assign) UIEdgeInsets itemsContentInsets
🆕 New features
BottomNavigationBar
Blur
BottomNavigation can use blur in its background when not fully opaque
self.bottomNavBar.backgroundBlurEnabled = YES;
Long item titles
We automatically truncate titles that go out of bounds but added a flag to allow some clients to still overflow.
self.navigationBar.truncatesLongTitles = NO;
Stateful Ripple
We added this new component that simplifies the intersection of states and ripples.
You can set the state of the ripple like so:
statefulRippleView.isRippleHighlighted = true ... statefulRippleView.isSelected = true
API changes
BottomNavigation
MDCBottomNavigationBar
🆕 new property:
backgroundBlurEffectStyle
inMDCBottomNavigationBar
🆕 new property:
backgroundBlurEnabled
inMDCBottomNavigationBar
🆕 new property:
truncatesLongTitles
inMDCBottomNavigationBar
✂ removed property:
itemsContentInsets
inMDCBottomNavigationBar
Ripple
MDCRippleState
🆕 new enum:
MDCRippleState
🆕 new enum value:
MDCRippleStateSelected
inMDCRippleState
🆕 new enum value:
MDCRippleStateDragged
inMDCRippleState
🆕 new enum value:
MDCRippleStateHighlighted
inMDCRippleState
🆕 new enum value:
MDCRippleStateNormal
inMDCRippleState
🆕 new typedef:
MDCRippleState
MDCStatefulRippleView
🆕 new class:
MDCStatefulRippleView
🆕 new method:
-rippleColorForState:
inMDCStatefulRippleView
🆕 new property:
selected
inMDCStatefulRippleView
🆕 new property:
allowsSelection
inMDCStatefulRippleView
🆕 new property:
rippleHighlighted
inMDCStatefulRippleView
🆕 new method:
-setRippleColor:forState:
inMDCStatefulRippleView
🆕 new property:
dragged
inMDCStatefulRippleView
Component changes
🔄 Changes
BottomNavigation
- Add blur example (#6589) (Robert Moore)
- Badge size grows with value (#6594) (Robert Moore)
- 👍 Add support for blur effect. (#6587) (Robert Moore)
- Delete
itemsContentInsets
API (#6584) (Robert Moore) - Extend ripple to bar bounds. (#6586) (Robert Moore)
- Fix "centered" alignment. (#6604) (Robert Moore)
- Fix Item View layout. (#6603) (Robert Moore)
- Fix badge position and font. (#6602) (Robert Moore)
🔊 Dialogs
- 🚚 Remove internal usage of Themers. (#6572) (Robert Moore)
- add an example for themed button with emphasis (#6600) (Wenyu Zhang)
- hide non main examples in Catalog (#6576) (Wenyu Zhang)
Ripple
- [Ripple] Provides a Stateful Ripple implementation (#6591) (Yarden Eitan)
Multi-component changes
- Fix ripple layout issues with autolayout (#6588) (Yarden Eitan)
- {kokoro} Fix develop (#6575) (Robert Moore)