Material Components v59.2.0 Release Notes
-
๐ This minor release introduces several new improvements to the AppBar component and bug fixes and accessibility improvements to various components.
๐ New features
๐ AppBar's documentation has been updated to reflect all of the most modern APIs and behavioral flags.
AppBar also now exposes a new
MDCAppBarViewController
API which is meant to be a more familiar replacement API forMDCAppBar
.A typical migration diff will look something like so (in Swift):
// Step 1 - let appBar = MDCAppBar() + let appBarViewController = MDCAppBarViewController() // Step 2 - self.addChildViewController(appBar.headerViewController) + self.addChildViewController(appBarViewController) // Step 3 - appBar.addSubviewsToParent() + view.addSubview(appBarViewController.view) + appBarViewController.didMove(toParentViewController: self)
API changes
AppBar+ColorThemer
MDCAppBarColorThemer
๐ new class method:
+applySurfaceVariantWithColorScheme:toAppBarViewController:
inMDCAppBarColorThemer
๐ new class method:
+applyColorScheme:toAppBarViewController:
inMDCAppBarColorThemer
AppBar
MDCAppBar
๐ new property:
appBarViewController
inMDCAppBar
MDCAppBarNavigationControllerDelegate
๐ new method:
-appBarNavigationController:willAddAppBarViewController:asChildOfViewController:
inMDCAppBarNavigationControllerDelegate
MDCAppBarNavigationController
๐ new method:
-appBarViewControllerForViewController:
inMDCAppBarNavigationController
MDCAppBarContainerViewController
๐ new property:
appBarViewController
inMDCAppBarContainerViewController
MDCAppBarViewController
๐ new class:
MDCAppBarViewController
AppBar+TypographyThemer
MDCAppBarTypographyThemer
๐ new class method:
+applyTypographyScheme:toAppBarViewController:
inMDCAppBarTypographyThemer
TextFields
MDCTextInputController
๐ new method:
-setHelperText:helperAccessibilityLabel:
inMDCTextInputController
Component changes
Tabs
๐ Changes
AppBar
๐ Changes
- ๐ Complete pass at documentation modernization. (#4708) (featherless)
- Enable inferTopSafeAreaInsetFromViewController on the App Bar in the navigation controller. (#4693) (featherless)
- Expose MDCAppBarViewController as a replacement for MDCAppBar. (#4695) (featherless)
- Fix bug where root view controller during initialization of nav controller would not be injected with an App Bar. (#4691) (featherless)
- Implement setViewControllers on MDCAppBarNavigationController. (#4736) (featherless)
- Increase likelihood that we detect existing App Bars when auto-injecting. (#4692) (featherless)
- Rename MDCAppBar.h to MDCAppBarViewController.h. (#4704) (featherless)
- [Catalog] Conversion to new App Bar View Controller API (#4696) (featherless)
TextFields
๐ Changes
- Add setHelperText:helperAccessibilityLabel (#4661) (Andrew Overton)
- Consider UIUserInterfaceLayoutDirection when drawing outlined text controller outline path (#4719) (Andrew Overton)
Chips
๐ Changes
- Allow clients to set
accessibilityLabel
on MDCChipView (#4664) (compositeprimes)
Snackbar
๐ Changes
- ๐ Removed unused variable from MDCSnackbarMessageView (#4690) (trungducc)
BottomAppBar
๐ Changes
- Add a11y guide to README (#4705) (Cody Weaver)
- [Catalog] Conversion to new App Bar View Controller API (#4696) (featherless)
NavigationBar
๐ Changes
- ButtonBar example with associated UIButton (#4677) (ianegordon)
BottomSheet
๐ Changes
- ๐ Examples support accessible scrim (#4711) (Robert Moore)
- [Catalog] Conversion to new App Bar View Controller API (#4696) (featherless)
๐ Dialogs
๐ Changes
- Fix button hit areas to match accessibility (#4684) (Cody Weaver)
BottomNavigation
๐ Changes
- Fix safe area insets on bottom nav example (#4637) (John Detloff)
- ๐ Remove duplicate tab position descriptions (#4679) (Robert Moore)
- [Catalog] Conversion to new App Bar View Controller API (#4696) (featherless)
FlexibleHeader
๐ Changes
- Allow additionalSafeAreaInsets to respect contextual top insets. (#4697) (featherless)
- Fix infinite recursion when observesTrackingScrollViewScrollEvents is enabled. (#4694) (featherless)
- ๐ Fixes a layout bug with VoiceOver on that was introduced in v57.0.0 (5dc67c88c06f11761769de1d0bae34ff2c657046). (#4698) (featherless)
- ๐ [AppBar] Complete pass at documentation modernization. (#4708) (featherless)
ShadowElevations
๐ Changes