Skip to content

Releases: material-components/material-components-ios

v54.6.0

16 Apr 16:06
Compare
Choose a tag to compare

This release introduces new APIs and themers for customizing typography and color. This release
also fixes a bug in NavigationBar affecting title label kerning for system fonts. This may result
in visual changes for navigation bar instances.

New features

AppBar now has a Typography themer.

Buttons now has a raised button color themer.

BottomSheets background tap-to-dismiss behavior can now be disabled with dismissOnBackgroundTap.

ButtonBar and NavigationBar's ink color can now be customized.

Cars now has a Color themer.

NavigationBar has a new opt-in behavioral change gated by the useFlexibleTopBottomInsets property.
Enabling this property will result in new layout behavior for the navigation bar's titleView. This
flag will be enabled by default in the future. Consider enabling this flag on your navigation bar
instances in order to verify that the new behavior will not cause regressions in your app.

TextFields now expose a backgroundColor property.

API changes

BottomSheet

MDCBottomSheetPresentationController

new property: dismissOnBackgroundTap in MDCBottomSheetPresentationController

MDCBottomSheetTransitionController

new property: dismissOnBackgroundTap in MDCBottomSheetTransitionController

MDCBottomSheetController

new property: dismissOnBackgroundTap in MDCBottomSheetController

ButtonBar

MDCButtonBar

new property: inkColor in MDCButtonBar

NavigationBar

MDCNavigationBar

new property: inkColor in MDCNavigationBar

new property: useFlexibleTopBottomInsets in MDCNavigationBar

TextFields

MDCTextInputControllerBase

new property: backgroundColor in MDCTextInputControllerBase

MDCTextInputController

new property: backgroundColorDefault in MDCTextInputController

new property: backgroundColor in MDCTextInputController

Component changes

AppBar

Changes

Buttons

Changes

ButtonBar

Changes

TextFields

Changes

Cards

Changes

NavigationBar

Changes

ActivityIndicator

Changes

BottomSheet

Changes

BottomNavigation

Changes

v54.5.0

13 Apr 20:13
Compare
Choose a tag to compare

This release includes bug fixes and increased coverage of our themer APIs for components.

New features

Slider now exposes a variety of properties for customizing color, including new stateful color APIs.
To make use of the new stateful APIs, you must enable statefulAPIEnabled on the MDCSlider
instance.

BottomNavigationBar and Dialogs now both have a semantic color themer.

API changes

Slider

MDCSlider

new method: -setBackgroundTrackTickColor:forState: in MDCSlider

new property: valueLabelTextColor in MDCSlider

new method: -trackFillColorForState: in MDCSlider

new method: -backgroundTrackTickColorForState: in MDCSlider

new method: -setThumbColor:forState: in MDCSlider

new method: -trackBackgroundColorForState: in MDCSlider

new method: -setFilledTrackTickColor:forState: in MDCSlider

new method: -filledTrackTickColorForState: in MDCSlider

new method: -thumbColorForState: in MDCSlider

new method: -setTrackBackgroundColor:forState: in MDCSlider

new property: inkColor in MDCSlider

new property: statefulAPIEnabled in MDCSlider

new property: valueLabelBackgroundColor in MDCSlider

new method: -setTrackFillColor:forState: in MDCSlider

Component changes

ButtonBar

Changes

TextFields

Changes

Chips

Changes

Slider

Changes

ActivityIndicator

Changes

Dialogs

Changes

BottomNavigation

Changes

v54.4.0

12 Apr 18:07
Compare
Choose a tag to compare

New features

Buttons now has a Typography themer.

MDCFlatButton now has a color themer API.

API changes

Component changes

Buttons

Changes

v54.3.0

11 Apr 13:55
Compare
Choose a tag to compare

This release continues to expand our support for component Color and Typography theming.

New features

Buttons and Snackbar now have a Color themer.

BottomNavigationBar, Chips, NavigationBar, TextFields each now have a Typography themer.

Component changes

Buttons

Changes

TextFields

Changes

Chips

Changes

Snackbar

Changes

NavigationBar

Changes

BottomNavigation

Changes

FlexibleHeader

Changes

v54.2.0

10 Apr 16:34
Compare
Choose a tag to compare

New features

Dialogs, FeatureHighlight, and TabBar now each have a Typography themer.

ActivityIndicator and AppBar now have an updated Color themer.

API changes

FeatureHighlight

MDCFeatureHighlightViewController

new property: titleFont in MDCFeatureHighlightViewController

new property: bodyFont in MDCFeatureHighlightViewController

TextFields

MDCTextInputController

new property: textInputFont in MDCTextInputController

new property: textInputFontDefault in MDCTextInputController

Component changes

Tabs

Changes

FeatureHighlight

Changes

AppBar

Changes

TextFields

Changes

Slider

Changes

NavigationBar

Changes

ActivityIndicator

Changes

Dialogs

Changes

v54.1.0

09 Apr 20:49
Compare
Choose a tag to compare

New features

Snackbar now has a Typography themer.

NavigationBar now exposes a Color themer API that makes use of the MDCColorScheming type.

Component changes

FeatureHighlight

Changes

Ink

Changes

Snackbar

Changes

NavigationBar

Changes

Dialogs

Changes

v54.0.1

09 Apr 19:04
Compare
Choose a tag to compare

Added missing CocoaPods dependencies from v54.0.0.

v54.0.0

09 Apr 16:21
Compare
Choose a tag to compare

Breaking changes

MDCMaskedTransition has been removed and replaced with MDCMaskedTransitionController. You may
now use MDCMaskedTransitionController as a standard UIKit transitioning delegate.

New features

Many components now expose new public APIs for configuring typography, color, and shapes.

API changes

Cards

MDCCardCollectionCell

new property: shapeGenerator in MDCCardCollectionCell

MDCCard

new property: shapeGenerator in MDCCard

Dialogs

MDCAlertController

new property: titleColor in MDCAlertController

new property: titleFont in MDCAlertController

new property: messageFont in MDCAlertController

new property: buttonTitleColor in MDCAlertController

new property: buttonFont in MDCAlertController

new property: messageColor in MDCAlertController

MaskedTransition

MDCMaskedTransition

removed class: MDCMaskedTransition

removed method: -init in MDCMaskedTransition

removed method: -initWithSourceView: in MDCMaskedTransition

removed property: calculateFrameOfPresentedView in MDCMaskedTransition

MDCMaskedTransitionController

new property: sourceView in MDCMaskedTransitionController

new method: -initWithSourceView: in MDCMaskedTransitionController

new method: -init in MDCMaskedTransitionController

new property: calculateFrameOfPresentedView in MDCMaskedTransitionController

new class: MDCMaskedTransitionController

NavigationBar

MDCNavigationBar

new property: titleFont in MDCNavigationBar

new property: titleTextColor in MDCNavigationBar

Snackbar

MDCSnackbarManager

new class method: +buttonTitleColorForState: in MDCSnackbarManager

new property: mdc_adjustsFontForContentSizeCategory in MDCSnackbarManager

new property: snackbarMessageViewBackgroundColor in MDCSnackbarManager

new property: shouldApplyStyleChangesToVisibleSnackbars in MDCSnackbarManager

new property: buttonFont in MDCSnackbarManager

new class method: +setButtonTitleColor:forState: in MDCSnackbarManager

new property: snackbarMessageViewShadowColor in MDCSnackbarManager

new property: messageTextColor in MDCSnackbarManager

new property: messageFont in MDCSnackbarManager

modified class method: +setPresentationHostView: in MDCSnackbarManager

Type of change: Declaration
From: + (void)setPresentationHostView:(UIView *)hostView;
To: + (void)setPresentationHostView:(nullable UIView *)hostView;

modified class method: +dismissAndCallCompletionBlocksWithCategory: in MDCSnackbarManager

Type of change: Declaration
From: + (void)dismissAndCallCompletionBlocksWithCategory:(NSString *)category;
To: + (void)dismissAndCallCompletionBlocksWithCategory: (nullable NSString *)category;

modified class method: +suspendMessagesWithCategory: in MDCSnackbarManager

Type of change: Swift declaration
From: class func suspendMessages(withCategory category: Any!) -> MDCSnackbarSuspensionToken!
To: class func suspendMessages(withCategory category: Any!) -> MDCSnackbarSuspensionToken?

modified class method: +suspendMessagesWithCategory: in MDCSnackbarManager

Type of change: Declaration
From: + (id<MDCSnackbarSuspensionToken>)suspendMessagesWithCategory: (NSString *)category;
To: + (nullable id<MDCSnackbarSuspensionToken>)suspendMessagesWithCategory: (nullable NSString *)category;

modified class method: +showMessage: in MDCSnackbarManager

Type of change: Swift declaration
From: class func show(_ message: MDCSnackbarMessage!)
To: class func show(_ message: MDCSnackbarMessage?)

modified class method: +showMessage: in MDCSnackbarManager

Type of change: Declaration
From: + (void)showMessage:(MDCSnackbarMessage *)message;
To: + (void)showMessage:(nullable MDCSnackbarMessage *)message;

modified class method: +suspendAllMessages in MDCSnackbarManager

Type of change: Swift declaration
From: class func suspendAllMessages() -> MDCSnackbarSuspensionToken!
To: class func suspendAllMessages() -> MDCSnackbarSuspensionToken?

modified class method: +suspendAllMessages in MDCSnackbarManager

Type of change: Declaration
From: + (id<MDCSnackbarSuspensionToken>)suspendAllMessages;
To: + (nullable id<MDCSnackbarSuspensionToken>)suspendAllMessages;

modified class method: +resumeMessagesWithToken: in MDCSnackbarManager

Type of change: Swift declaration
From: class func resumeMessages(with token: MDCSnackbarSuspensionToken!)
To: class func resumeMessages(with token: MDCSnackbarSuspensionToken?)

modified class method: +resumeMessagesWithToken: in MDCSnackbarManager

Type of change: Declaration
From: + (void)resumeMessagesWithToken:(id<MDCSnackbarSuspensionToken>)token;
To: + (void)resumeMessagesWithToken:(nullable id<MDCSnackbarSuspensionToken>)token;

Themes

MDCFontScheme

Moved to schemes/Typography.

MDCTonalPalette

Moved to schemes/Color.

MDCTonalColorScheme

Moved to schemes/Color.

MDCColorScheme

Moved to schemes/Color.

MDCBasicColorScheme

Moved to schemes/Color.

MDCBasicFontScheme

Moved to schemes/Typography.

schemes/Typography

New component.

Component changes

Tabs

Changes

MaskedTransition

Changes

schemes/Color

Changes

schemes/Typography

Changes

FeatureHighlight

Changes

AppBar

Changes

Ink

Changes

ButtonBar

Changes

TextFields

Changes

  • [Adding Color Themer. (#3255)](http...
Read more

v53.0.0

06 Apr 21:25
Compare
Choose a tag to compare

v52.0.0

05 Apr 16:10
Compare
Choose a tag to compare

52.0.0

Breaking changes

BottomNavigation

  • Color themer now only uses primaryColor and applies it to the selectedItemTintColor. It will no longer apply values to either unselectedItemTintColor or barTintColor.

TextFields

  • TextFields will no longer default to using Dynamic Type.
  • TextFields with floating placeholders now account for the placeholder when
    computing their bounds.

API Changes

TextFields

MDCTextInputControllerLegacyDefault

modified class: MDCTextInputControllerLegacyDefault

Type of change: Swift declaration
From: class MDCTextInputControllerLegacyDefault : NSObject, MDCTextInputControllerFloatingPlaceholder
To: class MDCTextInputControllerLegacyDefault : MDCTextInputControllerBase

modified class: MDCTextInputControllerLegacyDefault

Type of change: Declaration
From: @interface MDCTextInputControllerLegacyDefault : NSObject <MDCTextInputControllerFloatingPlaceholder>
To: @interface MDCTextInputControllerLegacyDefault : MDCTextInputControllerBase

MDCTextInputControllerLegacyFullWidth

modified class: MDCTextInputControllerLegacyFullWidth

Type of change: Swift declaration
From: class MDCTextInputControllerLegacyFullWidth : NSObject, MDCTextInputController
To: class MDCTextInputControllerLegacyFullWidth : MDCTextInputControllerFullWidth, NSSecureCoding

modified class: MDCTextInputControllerLegacyFullWidth

Type of change: Declaration
From: @interface MDCTextInputControllerLegacyFullWidth : NSObject <MDCTextInputController>
To: @interface MDCTextInputControllerLegacyFullWidth : MDCTextInputControllerFullWidth <NSSecureCoding>

MDCTextInputController

removed property: textInputFont in MDCTextInputController

removed property: textInputFontDefault in MDCTextInputController

Color

New component.

Component changes

Tabs

Changes

schemes/Color

Changes

FeatureHighlight

Changes

Ink

Changes

Buttons

Changes

ButtonBar

Changes

TextFields

Changes

Chips

Changes

Snackbar

Changes

NavigationBar

Changes

LibraryInfo

Changes

Dialogs

Changes

BottomNavigation

Changes

PageControl

Changes

AnimationTiming

Changes

Collections

Changes

FlexibleHeader

Changes

Palettes

Changes