This repository was archived by the owner on Dec 11, 2025. It is now read-only.
v73.1.0
In this minor release we have added new theming extensions for Cards and Chips, as well as added a new component to beta called Ripple that will eventually be a successor to Ink. We also added additional functionality to Dialogs, NavigationBar, and snapshot testing for Textfields.
New features
Card Theming Extension Usage Example
var scheme: MDCContainerScheming {
let scheme = MDCContainerScheme()
scheme.colorScheme = colorScheme
scheme.typographyScheme = typographyScheme
scheme.shapeScheme = shapeScheme
return scheme
}
...
let card = MDCCard()
card.applyTheme(withScheme: scheme)Chips Theming Extension Usage Example
var scheme: MDCContainerScheming {
let scheme = MDCContainerScheme()
scheme.colorScheme = colorScheme
scheme.typographyScheme = typographyScheme
scheme.shapeScheme = shapeScheme
return scheme
}
...
let chipView = MDCChipView()
chipView.applyTheme(withScheme: scheme)Dialogs Background Color Usage Example
let alert = MDCAlertController(title: "Title", message: "Message")
alert.backgroundColor = .whiteNavigationBar Title View Inset Usage Example
let navigationBar = MDCNavigationBar()
navigationBar.titleInsets = UIEdgeInsets(top: 0, left: 16, bottom: 0, right: 16)API changes
Cards+Theming
New extension.
Chips+Theming
New extension.
Ripple
New component.
Component changes
Changes
ActionSheet
- Remove redundant
visibilityargs. (#6073) (Robert Moore)
ActivityIndicator
AppBar
BottomAppBar
- Enable tapping on area above Navigation Bar (#6036) (Kirk Spaziani)
BottomNavigation
- Add examples bazel targets (#6161) (Robert Moore)
- Added an example for MDCBottomNavigationBarController (#6082) (Eric Lee)
- Fix MDCBottomNavigationBar elevation on MDCBottomNavigationBarController (#6051) (Matias Radzinski)
BottomSheet
Cards
- Ran buildifier against all BUILD files. (#6077) (featherless)
- Add snapshot tests for Card component with variations (#6041) (rami-a)
- Cards theming extension + snapshots: Re-revert with fix (#6049) (rami-a)
- Fix shadow elevation values for outlined cards (#6050) (rami-a)
Chips
- Create theming extension for Chips (#6087) (rami-a)
- Rename internal MDCTextField subclass in MDCChipField (#6032) (Galia Kaufman)
- Add more chip snapshot test to support image and accessory views (#6166) (rami-a)
- Add snapshot tests to Chips (#6098) (rami-a)
- Update chips examples to use theming extension (#6096) (rami-a)
Collections
- Add delegate method to check whether swiping should be limited to one direction. (#6170) (Randall Li)
Dialogs
- adding backgroundColor property for dark theme support (#6066) (Galia Kaufman)
FlexibleHeader
- Fix shift phase behavior when contained in the tracking scroll view. (#6069) (featherless)
- Mark MDCFlexibleHeaderTopSafeArea as final. (#6054) (featherless)
NavigationBar
- Add inset property for title view (#6118) (Cody Weaver)
- Refactor tests to not repeat the same code multiple times (#6136) (Cody Weaver)
- Remove duplicate test helper. (#6196) (Robert Moore)
NavigationDrawer
Ripple
- Ripple implementation + example + unit tests (#6174) (Yarden Eitan)
Slider
- Deflake unit tests. (#6143) (Robert Moore)
Tabs
TextFields
- Add Cyrillic, Hindi, Korean helpers for snapshot tests. (#6140) (Robert Moore)
- Add pre-verification hook for snapshot tests. (#6131) (Robert Moore)
- Drop RTL assert to a log message. (#6124) (Robert Moore)
- Fix RTL code for iOS less than 11. (#6121) (Robert Moore)
- Fix bad test rename (#6179) (Robert Moore)
- Fixing some compiler warnings. (#6142) (Robert Moore)
- Invalidate caret timers in snapshot tests. (#6182) (Robert Moore)
- Minor clean-up/refactor of text fields snapshot tests. (#6128) (Robert Moore)
- Rename hook test method. (#6168) (Robert Moore)
Disabledsnapshot tests use text properties. (#6070) (Robert Moore)- Add Arabic snapshot tests for Filled style. (#6130) (Robert Moore)
- Add Cyrillic snapshot tests. (#6150) (Robert Moore)
- Add Filled Floating Arabic RTL snapshot tests (#6139) (Robert Moore)
- Add Hindi snapshot tests. (#6141) (Robert Moore)
- Add Outlined text area snapshot tests. (#6145) (Robert Moore)
- Add RTL Arabic snapshots for FullWidth (#6127) (Robert Moore)
- Add Underline Floating snapshot tests (#6146) (Robert Moore)
- Add underline multiline snapshots tests. (#6175) (Robert Moore)
- Add underlined Arabic snapshot tests. (#6123) (Robert Moore)
- Adding Korean snapshot tests. (#6147) (Robert Moore)
- Arabic RTL snapshot tests (#6114) (Robert Moore)
- Fixing RTL input text alignment in snapshots. (#6132) (Robert Moore)
- Rename TextArea snapshot tests. (#6172) (Robert Moore)
- Revert cards theming exstension (#6048) (Robert Moore)
- Truncate helper/error text. (#6165) (Robert Moore)
Multi-component changes
- Add examples bazel targets. (#6072) (Robert Moore)
- Add support to specify insets for snapshot tests (#6057) (rami-a)
- Fix for release-candidate merge issue with develop (#6068) (rami-a)
- Make mdc_unit_test_suite's name explicit. (#6080) (featherless)
- Move files to src (#6138) (Cody Weaver)
- Update snapshot tests to utilize the new API for adding a background view (#6065) (rami-a)
- Use mdc_extension_objc_library in BUILD (#6089) (Robert Moore)
- {Beta} Fix name of "fake" Beta header. (#6055) (Robert Moore)