Material Components v85.2.0 Release Notes
-
🚀 In this minor release we have fixed bugs in Buttons and FlexibleHeader, added new features to Banner, added a theming extension for BottomNavigation, and improved test coverage in BottomSheet.
🆕 New features
👍 MDCBanner now supports
intrinsicContentSize
.MDCBannerView *myBanner = ... CGSize validIntrinsicContentSize = myBanner.intrinsicContentSize;
API changes
Banner
MDCBannerView
🆕 new property:
mdc_adjustsFontForContentSizeCategory
inMDCBannerView
BottomNavigation+Theming
🆕 New extension.
Tabs+TabBarView
👍 MDCTabBarViewIndicatorSupporting
🆕 new protocol:
MDCTabBarViewIndicatorSupporting
🆕 new property:
contentFrame
inMDCTabBarViewIndicatorSupporting
🆕 new property:
bounds
inMDCTabBarViewIndicatorSupporting
MDCTabBarView
🆕 new method:
-setTitleFont:forState:
inMDCTabBarView
🆕 new method:
-titleColorForState:
inMDCTabBarView
🆕 new method:
-setImageTintColor:forState:
inMDCTabBarView
🆕 new method:
-titleFontForState:
inMDCTabBarView
🆕 new method:
-imageTintColorForState:
inMDCTabBarView
🆕 new property:
tabBarDelegate
inMDCTabBarView
🆕 new method:
-setSelectedItem:animated:
inMDCTabBarView
🆕 new method:
-setTitleColor:forState:
inMDCTabBarView
🆕 new property:
barTintColor
inMDCTabBarView
MDCTabBarItem
🆕 new class:
MDCTabBarItem
MDCTabBarItemCustomViewing
🆕 new protocol:
MDCTabBarItemCustomViewing
🆕 new property:
mdc_customView
inMDCTabBarItemCustomViewing
MDCTabBarViewDelegate
🆕 new method:
-tabBarView:shouldSelectItem:
inMDCTabBarViewDelegate
🆕 new protocol:
MDCTabBarViewDelegate
🆕 new method:
-tabBarView:didSelectItem:
inMDCTabBarViewDelegate
TextFields+ContainedInputView
🆕 New extension.
🔄 Changes
Banner
- 👍 Add intrinsicContentSize support with an example. (#7620) (Wenyu Zhang)
- 👍 Support Dynamic Type in Banner (#7709) (Wenyu Zhang)
BottomNavigation
- Add theming extension (#7691) (Cody Weaver)
BottomSheet
- ✅ Added test to avoid referencing UIWebView under UIKit for Mac (#7679) (Mark Aufflick)
Buttons
FlexibleHeader
- Ensures the frame is correct under UIKit for Mac (#7668) (Mark Aufflick)
- ⚡️ Use updated voiceover status change notification (#7571) (Josh Converse)
Tabs
- Add
barTintColor
API. (#7711) (Robert Moore) - Add accessibility hint and identifier (#7729) (Cody Weaver)
- Add accessibility label (#7727) (Cody Weaver)
- 👍 Add accessibility traits support (#7739) (mikefan1991)
- 👍 Add delegate support to MDCTabBarView (#7725) (mikefan1991)
- Add imageTintColorForState APIs. (#7714) (Robert Moore)
- 👍 Add initial support for custom view. (#7678) (Robert Moore)
- Add ripple effect (#7726) (Ang)
- Add the user selection visible logic (#7740) (mikefan1991)
- Add titleColorForState: API. (#7712) (Robert Moore)
- Add titleFontForState APIs (#7757) (Cody Weaver)
- 👍 Add user selection support to the MDCTabBarView (#7713) (mikefan1991)
- Adds justified and scrollable layout to MDCTabBarView (#7704) (Ang)
- Adds safe area inset (#7753) (Ang)
- 👍 Adds support for rendering custom views. (#7755) (Robert Moore)
- Allow setting selected item without animation. (#7749) (Robert Moore)
- 0️⃣ Create default selection indicator template. (#7751) (Robert Moore)
- Expose the the iconImageView and the titleLabel of the item view (#7703) (mikefan1991)
- Fix MDCTabBarViewItemView sizing. (#7718) (Robert Moore)
- Fix bugs (#7735) (mikefan1991)
- Fix image tint color when unselecting an item. (#7756) (Robert Moore)
- Fix scroll-to-item for RTL. (#7754) (Robert Moore)
- Fix the layout of MDCTabBarViewItemView (#7747) (mikefan1991)
- Fork selection indicator. (#7723) (Robert Moore)
- Ignore
selectedItem
values not initems
. (#7702) (Robert Moore) - Initial MDCTabBarViewItemView version (#7665) (mikefan1991)
- KVO UITabBarItem's
title
andimage
properties (#7700) (Robert Moore) - Make itemView conform to the selection indicator protocol. (#7750) (Robert Moore)
- Rearrange MDCTabBarView internals. (#7696) (Robert Moore)
- 🚚 Remove redundant code. (#7716) (Robert Moore)
- Send tab item title/image to views (#7698) (Robert Moore)
- ✅ Use templated image in snapshot test. (#7730) (Robert Moore)
TextFields
- Add MDCBaseTextField as extension (#7694) (Andrew Overton)
private/ThumbTrack
- ⚠ Uses @synthesize for touchController to avoid warning (#7670) (Sylvain Defresne)