Skip to content

v85.10.0

Compare
Choose a tag to compare
@romoore romoore released this 30 Jul 17:51
· 2622 commits to stable since this release

85.10.0

This minor release expands support for trait collection and Material Elevation
changes in several components. Bottom Sheet and Navigation Drawer now support
shadows and elevation.

Breaking changes

The following breaking changes were made for Beta components that are not
published to CocoaPods.

  • MDCBottomNavigationBarController now positions child view controllers'
    views behind the Bottom Navigation bar.
  • MDCBannerView now uses a UITextView for the message text instead of a
    UILabel.

New features

Several more components received APIs that allow responding to
UITraitCollection changes. Assigning a traitCollectionDidBlock on a
supported component enables code to be executed in the component's
traitCollectionDidChange: method without subclassing.

Support for Material Elevation expanded to several more components. APIs to
support overriding the computed value for mdc_baseElevation and to respond to
elevation changes are available. Assigning an elevationDidChangeBlock on a
supported component enables code to be executed whenever the component's
elevation changes. This may include state-based elevation changes (like
pressing on a Chip) or when the component's elevation value is changed
programmatically.

The Bottom Sheet component, specifically MDCBottomSheetController now renders
a shadow by default. This may cause a very slight change in the shading around
the edges of the view. If desired, non-elevated Bottom Sheets can be configured
by setting the elevation property's value to 0.

Likewise, the Navigation Drawer's MDCBottomDrawerPresentationController
renders a shadow by default. To disable the shadow or modify the drawer's
elevation, set the elevation property to the desired value.

MDCBottomSheetController *bottomSheet =
     [[MDCBottomSheetController alloc] initWithContentViewController:mySheetContentVC];
bottomSheet.elevation = 0;

MDCTabBarView, currently in Beta, now provides an API to set its preferred
layout style.

MDCTabBarView *tabBarView = [[MDCTabBarView alloc] init];
tabBarView.preferredLayoutStyle = MDCTabBarViewLayoutStyleScrollable;

Changes

AppBar

Banner

BottomAppBar

BottomNavigation

BottomSheet

Buttons

Cards

Chips

Dialogs

Elevation

FeatureHighlight

FlexibleHeader

HeaderStackView

Ink

List

NavigationDrawer

PageControl

ProgressView

Ripple

Slider

Snackbar

Tabs

TextFields

Typography

private/Color

Multi-component changes