v107.4.0
This minor release includes improvements to Chips, Dialogs, HeaderStackView, ProgressView, NavigationBar, NavigationDrawer, and Tabs.
New deprecations
Dialogs
MDCAlertControllerView
titleAlignment
,messageAlignment
, andtitleIconView
properties have been deprecated.
API changes
MDCTabBarView
- The previously private
effectiveLayoutStyle
is now publicly exposed as a readonly property.
Component changes
ActionSheet
- Fix umbrella header imports (Bryan Oltman)
- Move protocol definitions into separate header files (#9926) (copybara-service[bot])
ActivityIndicator
- Move protocol definitions into separate header files (Bryan Oltman)
AppBar
- Move protocol definitions into separate header files (Bryan Oltman)
BottomNavigation
- Move protocol definitions into separate header files (Bryan Oltman)
BottomSheet
- Move protocol definitions into separate header files (Bryan Oltman)
- Remove private header imports from MaterialBottomSheet.h (Bryan Oltman)
ButtonBar
- Move protocol definitions into separate header files (Bryan Oltman)
Chips
- Add call to invalidateIntrinsicContentSize when text entry moves up or down a line. (Bryan Oltman)
- Adds disabling chip example to the Dragons catalog. (Bryan Oltman)
- Project import generated by Copybara. (Nobody)
- Update intrinsicContentSize when text, font, or image change. (Cody Weaver)
Collections
- Move protocol definitions into separate header files (Nobody)
- Move protocol definitions into separate header files (Bryan Oltman)
- Move protocol definitions into separate header files (Bryan Oltman)
- Remove private header imports from MaterialCollections.h (Bryan Oltman)
- Remove private header imports from MaterialCollections.h (Nobody)
Dialogs
- # Problem The current snapshot is inaccurate because there is not enough room to layout all the dialog's elements, so spaces between the elements are inaccurate for many snapshots. (Galia Kaufman)
- Add TitleIcon snapshot tests. (Galia Kaufman)
- Custom title icon public API: Flip the priority between title icon and title custom view to mirror UIKit convention. (Iryna Berezan)
- Fix layout of configuration snapshot test. (Galia Kaufman)
- Minor grammatical fix. (Jeff Verkoeyen)
- Move protocol definitions into separate header files (Bryan Oltman)
- Moving non appearance API to private header (Galia Kaufman)
- Refactor titleIconViewSize. (Galia Kaufman)
- Support title icon content mode through custom titleIconImageView. (Galia Kaufman)
- recalculate alert layout after adding a title icon and title view (Galia Kaufman)
FeatureHighlight
- Minor docs fix. (Jeff Verkoeyen)
FlexibleHeader
- Add synonyms to hairline API documentation for increased discovery. (Jeff Verkoeyen)
- Move protocol definitions into separate header files (Bryan Oltman)
- Remove imports of private headers from MaterialFlexibleHeader.h (Bryan Oltman)
HeaderStackView
- Fix sizeThatFits method for MDCHeaderStackView to take into account both topBar and bottomBar. (Nobody)
Ink
- Move protocol definitions into separate header files (Bryan Oltman)
NavigationBar
- Problem: The title label does not resize in an edge case when the user enables bold text in settings->display & brightness and then opening the app if the title label was already on the screen. (Tony Lai)
- Remove default insets for leading titles. (Jeff Verkoeyen)
NavigationDrawer
- Move protocol definitions into separate header files (Bryan Oltman)
- This CL makes it such that when
bottomSafeAreaInsetsToAdjustContainerHeight
is set to YES, for performant scrolling the safe area is respected in calculating the max scroll origin, preventing a safe area presentation issue. (Jake Rockland) - This closes b/151091406, which was being caused because the presenting view controller is used to determine the frame of the bottom drawer's scroll view, which caused issues for situations in which the bottom drawer was presented from a modal view controller in the page or form sheet style. (Jake Rockland)
ProgressView
- Adding default accessibility label (Nobody)
- Adding default accessibility label (Yarden Eitan)
- Remove MDCProgressViewMotionSpec. (Wenyu Zhang)
Ripple
- Migrates Ripple to MDCAvailability. (Eric Lee)
- Move protocol definitions into separate header files (Bryan Oltman)
Slider
- Move protocol definitions into separate header files (Bryan Oltman)
Snackbar
- Move protocol definitions into separate header files (Bryan Oltman)
Tabs
- Expose effectiveLayoutStyle as a readonly property. (Alvin Wong)
- For the ScrollableCentered layout, update -contentOffsetNeededToCenterItemView to handle empty itemView.frame, use computed content size, and clamp contentOffsetX when contentSize.width < availableWidth. (Alvin Wong)
- Move protocol definitions into separate header files (Bryan Oltman)
TextFields
- Move protocol definitions into separate header files (Bryan Oltman)
private/Icons/icons/ic_arrow_back
- Use AssetCatalogs for ic_arrow_back images. (Wenyu Zhang)
private/Icons
- Use AssetCatalogs for ic_arrow_back images. (Wenyu Zhang)
- Use AssetCatalogs for icons. (Wenyu Zhang)
Multi-component changes
- Remove pathFor_ic_* methods. (Wenyu Zhang)
- Use AssetCatalogs for icons. (Wenyu Zhang)