v77.0.0
77.0.0
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 in MDCBottomNavigationBar
new property: backgroundBlurEnabled in MDCBottomNavigationBar
new property: truncatesLongTitles in MDCBottomNavigationBar
removed property: itemsContentInsets in MDCBottomNavigationBar
Ripple
MDCRippleState
new enum: MDCRippleState
new enum value: MDCRippleStateSelected in MDCRippleState
new enum value: MDCRippleStateDragged in MDCRippleState
new enum value: MDCRippleStateHighlighted in MDCRippleState
new enum value: MDCRippleStateNormal in MDCRippleState
new typedef: MDCRippleState
MDCStatefulRippleView
new class: MDCStatefulRippleView
new method: -rippleColorForState: in MDCStatefulRippleView
new property: selected in MDCStatefulRippleView
new property: allowsSelection in MDCStatefulRippleView
new property: rippleHighlighted in MDCStatefulRippleView
new method: -setRippleColor:forState: in MDCStatefulRippleView
new property: dragged in MDCStatefulRippleView
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
itemsContentInsetsAPI (#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)