In this minor release, we added opt-in feature from MDCShadowLayer to MDCShadow for several components, annotated APIs with tvOS availability, and fixed a variety of bugs on components.
New features
BottomSheet
MDCBottomSheetController
has a new ignoreKeyboardHeight
property to control BottomSheet's behavior when keyboard is present.
Chips
MDCChipFieldDelegate
has a new delegate method chipFieldShouldEndEditing
to match chipFieldShouldBeginEditing
.
Component changes
ActionSheet
- Allow clients to get the view associated with a given action. (Cody Weaver)
- Inform the delegate that the action sheet is dismissed when the dismissal is issued from the accessibility gesture. (Nobody)
ActivityIndicator
- Internal change. (Nobody)
BottomNavigation
- Adds opt-in from MDCShadowLayer to MDCShadow. (Yarden Eitan)
- Only initialize blur effect view if it is not hidden. (Alyssa Weiss)
BottomSheet
- Add ignoreKeyboardHeight to allow configuring bottomSheet's behavior when keyboard is present. (Wenyu Zhang)
- Adjust content view frame when safe area insets change. (Alyssa Weiss)
- Fix Bottom sheet bug that was causing flickering. (Alyssa Weiss)
ButtonBar
Buttons
- Attempt to reduce flakiness of the buttons screenshot tests. (Jeff Verkoeyen)
Cards
- Fix broken examples (Yarden Eitan)
Chips
- Extract clear button from MDCChipField (Andrew Overton)
- This CL makes two changes: 1. Adds a new delegate method
chipFieldShouldEndEditing
to matchchipFieldShouldBeginEditing
2. Moved the call to the chip field delegate forchipFieldDidBeginEditing
andchipFieldDidEndEditing
so they are fired at the correct time. (Nobody)
Dialogs
- Avoid cutting off the top of Thai characters with diacritics. In iOS platform, text font are not strictly required to fit within the UIFont.lineHeight. Some Thai characters with diacritics are rendered outside the UILabel/UITextView's bounds. (Nobody)
- Groups MDCAlertController view's accessibility children. (Nobody)
- Inform the dialogPresentationControllerDelegate that the alert controller is dismissed when the dismissal is issued from the accessibility gesture. (Nobody)
NavigationBar
- Upgrade Swift to 5. (Jeff Verkoeyen)
Shadow
- Add initial readme file with simple usage guide. (Yarden Eitan)
- Code improvements for the new Shadow component. (Yarden Eitan)
- Dragon Catalog example of new in-development Shadow component. (Ben Hamilton)
- Move MDCShadowForElevation to become an instance method of MDCShadowsCollection. (Yarden Eitan)
- Remove attribute((fallthrough)) (Yarden Eitan)
Typography
- Deleted scaledValueForValue API from Material Typography. (Alyssa Weiss)
- Remove description related to iOS 9 as there is no longer iOS 9 support (Alyssa Weiss)
Multi-component changes
- Add opt-in new performant shadow support. (Yarden Eitan)
- Annotate APIs with tvOS availability. (Jeff Verkoeyen)
- Disable label animation when label is truncated (Andrew Overton)
- Fix broken images in iOS/Supporting APIs dev docs (Nobody)
- Fix build errors related to the Shadow component. (Jeff Verkoeyen)
- Flattening all unit tests into single directories as per convention. (Jeff Verkoeyen)
- Internal Change (Yarden Eitan)
- Internal change. (Jeff Verkoeyen)
- Internal change. (Jeff Verkoeyen)
- Miscellaneous doc updates (Andrew Overton)
- Remove all iOS 10 availability checks from material_components_ios now that only iOS 10+ is supported. (Alyssa Weiss)