Releases: material-components/material-components-ios
v92.1.0
This minor release introduces badge color APIs for Bottom Navigation and Bottom Drawer support for
full-height presentation with any content. Tabs and TextFields received bug fixes. Ripple optimizations
improved callback behavior.
New features
Bottom Navigation
Bottom Navigation addded itemBadgeBackgroundColor and itemBadgeTextColor APIs to allow clients to
set a custom badge background and text colors for all badges.
itemView.badgeColor = UIColor.whiteColor;
itemView.badgeTextColor = UIColor.redColor;
Navigation Drawer
Always allow the header to expand
Header can expand even if content doest fill screen.
self.navigationDrawer.shouldAlwaysExpandHeader = YES;
Changes
BottomNavigation
- Add support for custom badge and text colors. (#8518) (Robert Moore)
NavigationDrawer
- Allow header to expand even if content doesn't fill screen. (#8484) (Cody Weaver)
- Allow users to scroll to dismiss on lower resolution devices. (#8503) (Cody Weaver)
- Fix broken header when content expands (#8514) (Cody Weaver)
Ripple
- Add callbacks for MDCRippleView and MDCRippleLayer NO is passed in for animated parameter (#8505) (Michael Schneider)
Tabs
- Add newline for code snippet. (#8472) (Robert Moore)
- Correct MDCTabBarView behavior for contentInset. (#8512) (Robert Moore)
- Expand configuration in MDCTabBarView example. (#8498) (Robert Moore)
- Remove internal layout type. (#8519) (Robert Moore)
- Update TabBarView documentation. (#8489) (Robert Moore)
TextFields
- Add initial stateful coloring stuff (#8406) (Andrew Overton)
- Add some important protocols (#8493) (Andrew Overton)
- Add some placeholder logic (#8448) (Andrew Overton)
- Implement some UIView overrides in MDCBaseTextField (#8494) (Andrew Overton)
- Preserve placeholder font. (#8521) (Robert Moore)
- Rename "contained input view" to "text control" (#8524) (Andrew Overton)
- Tinkering with snapshot tests (#8511) (Andrew Overton)
Typography
- Fix scaling test. (#8477) (Robert Moore)
private/Icons
- Add tests for remaining icons. (#8499) (Robert Moore)
Multi-component changes
- Correct icons scripts and integration. (#8501) (Robert Moore)
- Replace
mdc_adjustsFontForContentSizeCategory
with (#8476) (Robert Moore) - Suppress deprecation warnings. (#8481) (Robert Moore)
- Use XCTAssertEqualColors from MDFTesting to help color testing. (#8497) (Wenyu Zhang)
- remove MDFTesting references. (#8531) (Wenyu Zhang)
v92.0.0
This major release removes the mdc_adjustsFontForContentSizeCategory
API
from MDCTypographyScheming
. It makes
useCurrentContentSizeCategoryWhenApplied
required for all implementations.
Breaking changes
Classes conforming to MDCTypographyScheming
must now provide the API
useCurrentContentSizeCategoryWhenApplied
. It was previously recommended that
it be bound to the value of mdc_adjustsFontForContentSizeCategory
.
Changes
schemes/Typography
- Replace
mdc_adjustsFontForContentSizeCategory
with (#8476) (Robert Moore)
v91.1.1
This patch release corrects initalization of AppBar and splits the typography scheme so the protocol can be
used separately from the class conforming to the protocol.
Changes
ActionSheet
- Add elevation property to ActionSheet. (#8465) (Wenyu Zhang)
AppBar
- Hide the navigation bar in MDCAppBarNavigationController's initWithRootViewController API. (#8471) (featherless)
NavigationDrawer
schemes/Typography
Multi-component changes
- set elevation value in theming extension. (#8466) (Wenyu Zhang)
v91.1.0
This minor release adds support for customizing the elevation on ActionSheet component, and updates its
theming extension to apply a customized elevation value.
Changes
ActionSheet
- set elevation value in theming extension. (#8466) (Wenyu Zhang)
- Add elevation property to ActionSheet. (#8465) (Wenyu Zhang)
v91.0.0
91.0.0
This major release deletes several deprecated APIs and annotates several APIs as deprecated. Usage
of UIWebView
has also been replaced with WKWebView
.
Breaking changes
Buttons shouldRaiseOnTouch
was deleted. Set elevation to MDCShadowElevationNone
for all states
instead.
Buttons underlyingColor
property was deleted. Use underlyingColorHint
instead.
New deprecations
MDCMaskedTransitionController
was deprecated. There is no replacement for this component. Please
use a standard presentViewController
invocation instead.
New features
ProgressView's cornerRadius
property was added. This enables clients to customize the corner radius
of the filled portion of the progress view.
ActionSheet added the ability to add a divider between the header and table. Properties
headerDividerColor
and showHeaderDivider
were added to MDCActionSheetController. If a client
wants to show a header divider they would need to set showHeaderDivider
and then set an
appropriate color for their use case, by default it is clearColor
. By default the property
showHeaderDivider
view is NO
so that we do not break clients. This matches a pattern outlined
in MDCBannerView
.
Changes
ActionSheet
BottomSheet
- replace UIWebView usage with WKWebView. (#8453) (Wenyu Zhang)
Buttons
- Delete underlyingColor property (#8451) (Bryan Oltman)
- Remove unused shouldRaiseOnTouch property (#8455) (Bryan Oltman)
MaskedTransition
- Deprecate MDCMaskedTransitionController. (#8443) (featherless)
ProgressView
- Add cornerRadius API. (#7417) (featherless)
schemes/Typography
v90.0.0
This major release deletes several deprecated APIs and annotates several APIs as deprecated.
Breaking changes
Buttons' buttonWithShape:
API has been deleted. Please use floatingButtonWithShape:
instead.
FlexibleHeader's behavior
API has been deleted. Please use shiftBehavior
instead.
NavigationBar's textAlignment
API has been deleted. Please use titleAlignment
instead.
New deprecations
ActivityIndicator's ColorThemer is now deprecated. Please theme MDCActivityIndicator's colors
directly instead.
ButtonBar's Theming extension and TypographyThemer are now deprecated. ButtonBar is not intended to
be themed as a standalone component. Please theme it via the AppBar component's Theming extension
instead.
BottomAppBar's ColorThemer is now deprecated. There is presently no replacement. Please indicate
interest in a replacement at
https://github.com/material-components/material-components-ios/issues/7172.
Upcoming breaking changes
BasicFontScheme is now a standalone target within schemes/Typography with the CocoaPods spec name:
MaterialComponents/schemes/Typography+BasicFontScheme
. For backwards compatibility, this new
target is still a dependency of `MaterialComponents/schemes/Typography. This dependency will be
removed as a breaking change in a subsequent release, with the intent of eventually deprecating
and deleting the BasicFontScheme target altogether.
Changes
ActionSheet
- Minor style cleanup of import statements. (#8428) (featherless)
ActivityIndicator
- Deprecate ColorThemer. (#8430) (featherless)
BottomAppBar
- Deprecate the ColorThemer. (#8438) (featherless)
ButtonBar
- Deprecate Theming and TypographyThemer. (#8432) (featherless)
Buttons
- Clarify the alternative to shouldRaiseOnTouch. (#8422) (featherless)
- Delete MDCFloatingButton's buttonWithShape method (#8416) (Bryan Oltman)
FlexibleHeader
- Delete unused behavior property (#8414) (Bryan Oltman)
NavigationBar
TextFields
- Try new approach to snapshot testing textfields (#8407) (Andrew Overton)
private/ThumbTrack
- Delete unused hasShadow property (#8412) (Bryan Oltman)
schemes/Typography
- Pull BasicFontScheme out to an extension. (#8425) (featherless)
- Rename MaterialTypography+BasicFontScheme.h to MaterialTypographyScheme+BasicFontScheme.h. (#8442) (featherless)
Multi-component changes
- Fix theming docs. (#8431) (Robert Moore)
v89.0.0
This major release deletes several deprecated APIs, includes bug fixes for iOS 13, and improves
haptics support in Slider.
Breaking changes
Buttons' customTitleColor
and shouldCapitalizeTitle
APIs have been deleted.
Chips' inkColor
API has been deleted.
Changes
Buttons
- Delete deprecated customTitleColor property (#8403) (Bryan Oltman)
- Remove unused shouldCapitalizeTitle property (#8402) (Bryan Oltman)
Chips
- Remove deprecated inkColor property (#8399) (Bryan Oltman)
FlexibleHeader
- Update inferred status bar style on light backgrounds for iOS 13 (#8380) (Cameron Spickert)
Slider
TextFields
- Add label animator (#8382) (Andrew Overton)
- Misc clean up (#8404) (Andrew Overton)
v88.2.0
This minor release makes the Banner component generally available, and
provides a bug fix for Buttons.
New features
MDCBannerView
is now available for providing messaging to your app's users.
It implements Material Banners and
"displays a prominent message and related optional actions."
Changes
ActionSheet
- [ActionSheet] Add snapshot tests to ensure the default presentation behavior doesn't change under iOS 13. (#8365) (Wenyu Zhang)
Banner
- Add a missing button title in example. (#8369) (Wenyu Zhang)
- Add an example to show super long text case. (#8372) (Wenyu Zhang)
- Add documentation on setting hidden of trailing button. (#8371) (Wenyu Zhang)
- Refactor typical example view controller. (#8373) (Wenyu Zhang)
- Update readme after updating API from textLabel to textView. (#8378) (Wenyu Zhang)
BottomSheet
- Add snapshot tests to ensure BottomSheet's default presentation behavior doesn't change under iOS 13. (#8364) (Wenyu Zhang)
Buttons
- overwrite intrinsicContentSize method. (#8370) (Wenyu Zhang)
Dialogs
FeatureHighlight
- Add snapshot tests to ensure the default presentation behavior doesn't change under iOS 13. (#8366) (Wenyu Zhang)
TextFields
- Add contained input view clear button (#8247) (Andrew Overton)
private/Snapshot/TestHost
private/Snapshot
v88.1.0
This minor change introduces presentation and dismissal improvements to
NavigationDrawer. MDCSnackbarMessage
subclasses must now respond to - init
. Further improvements are made to the in-development Contained Input
Fields.
API changes
TextFields+ContainedInputView
MDCBaseTextField
new property: labelBehavior
in MDCBaseTextField
new property: label
in MDCBaseTextField
MDCTextControlLabelBehavior
new enum value: MDCTextControlLabelBehaviorDisappears
in MDCTextControlLabelBehavior
new enum: MDCTextControlLabelBehavior
new enum value: MDCTextControlLabelBehaviorFloats
in MDCTextControlLabelBehavior
new typedef: MDCTextControlLabelBehavior
Changes
Banner
List
- Fix docs rendering for snippet. (#8353) (Robert Moore)
NavigationDrawer
- Add fix for jump on interactive dismissal (#8347) (Jonathan Willing)
- Respect the rotation preferences of presenting controller (#8278) (Michael Cheung)
Ripple
- Add the layer masking in layoutSublayers if there are sublayers present. (#8359) (Yarden Eitan)
- Performance Improvements on initialization (#8354) (Yarden Eitan)
Snackbar
- Fix MDCSnackbarMessage convenience class methods (#7724) (Jack Freeman)
TextFields
- Add floating label to MDCBaseTextField (#8358) (Andrew Overton)
- Add initial text rect logic (#8324) (Andrew Overton)
v88.0.1
This patch release adds performance improvements to Ripple during its initialization and layout phases.