v59.2.0
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 for MDCAppBar.
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: in MDCAppBarColorThemer
new class method: +applyColorScheme:toAppBarViewController: in MDCAppBarColorThemer
AppBar
MDCAppBar
new property: appBarViewController in MDCAppBar
MDCAppBarNavigationControllerDelegate
new method: -appBarNavigationController:willAddAppBarViewController:asChildOfViewController: in MDCAppBarNavigationControllerDelegate
MDCAppBarNavigationController
new method: -appBarViewControllerForViewController: in MDCAppBarNavigationController
MDCAppBarContainerViewController
new property: appBarViewController in MDCAppBarContainerViewController
MDCAppBarViewController
new class: MDCAppBarViewController
AppBar+TypographyThemer
MDCAppBarTypographyThemer
new class method: +applyTypographyScheme:toAppBarViewController: in MDCAppBarTypographyThemer
TextFields
MDCTextInputController
new method: -setHelperText:helperAccessibilityLabel: in MDCTextInputController
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
accessibilityLabelon MDCChipView (#4664) (compositeprimes)
Snackbar
Changes
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)