Skip to content

Releases: material-components/material-components-ios

v100.1.0

09 Jan 18:05
Compare
Choose a tag to compare

In this minor release we addressed a bug in MDCSnackbar where the Snackbar would not read the accessibilityHint.

Component changes

Snackbar

v100.0.1

08 Jan 23:06
Compare
Choose a tag to compare

In this patch release we addressed a bug in MDCSnackbar where the Snackbar would not clipToBounds if the legacy behavior was enabled.

Component changes

Snackbar

v100.0.0

02 Jan 17:10
Compare
Choose a tag to compare

100.0.0

In this major release we made a breaking change improvement to Ink’s inkColor API. As well as improvements including customization Dialogs presentation animation,
Flexible Header behavior around safe area. Also, we addressed bugs in Snackbar and TextFields.

Breaking changes

The inkColor in MDCInkView is now null_resettable.

New features

Dialogs

We added the ability to customize MDCAlertController presentation animation.

let alertController = MDCAlertController()
alertController.presentationOpacityAnimationDuration = 0.5
alertController.presentationScaleAnimationDuration = 0.25
alertController.presentationInitialScaleFactor = 0.7
MDCAlertController *alertController = [[MDCAlertController alloc] init];
alertController.presentationOpacityAnimationDuration = 0.5;
alertController.presentationScaleAnimationDuration = 0.25;
alertController.presentationInitialScaleFactor = 0.7;

FlexibleHeader

We added a new runtime flag permitInferringTopSafeAreaFromTopLayoutGuideViewController to address a crash that was occurring in certain configurations.

When disabled, if both inferTopSafeAreaInsetFromViewController and topLayoutGuideAdjustmentEnabled are set to YES, and the view controller selected to extract the safe area inset from (either automatically or via the delegate) is the same as topLayoutGuideViewController, the app will crash.

When enabled, the app will not crash in the situation described above. This is only supported on iOS 11+.

Enable this property before setting inferTopSafeAreaInsetFromViewController or topLayoutGuideViewController.

let flexibleHeader = MDCFlexibleHeaderViewController()
flexibleHeader.permitInferringTopSafeAreaFromTopLayoutGuideViewController = true
MDCFlexibleHeaderViewController *flexibleHeader = [[MDCFlexibleHeaderViewController alloc] init];
flexibleHeader.permitInferringTopSafeAreaFromTopLayoutGuideViewController = YES;

API changes

Dialogs

new property: presentationOpacityAnimationDuration in MDCAlertController.

new property: presentationScaleAnimationDuration in MDCAlertController.

new property: presentationInitialScaleFactor in MDCAlertController.

FlexibleHeader

new property: permitInferringTopSafeAreaFromTopLayoutGuideViewController in MDCFlexibleHeaderViewController.

Ink

modified property: inkColor in MDCInkView to be null_resettable.

Component changes

ActionSheet

Banner

Dialogs

FlexibleHeader

Ink

Snackbar

Tabs

TextControls

TextFields

Multi-component changes

v99.0.2

26 Dec 21:42
Compare
Choose a tag to compare

This patch release is an empty release intended solely to connect stable to develop's ancestry.

v99.0.1

26 Dec 17:14
Compare
Choose a tag to compare

This patch release is an empty release intended solely to re-connect the develop and stable
branch histories.

v99.0.0

23 Dec 21:29
Compare
Choose a tag to compare

In this major release we deleted and deprecated numerous APIs in ButtonBar, FeatureHighlight, List,
Tabs, TextFields and Flexible Header. We fixed layout issues in Dialogs and BottomAppBar, and added
support for non-transient Snackbars.

New features

Snackbar

We added an opt-in flag to ignore the default timeout and allow Snackbars to persist until an action
is made upon it:

let snackBarMessage = MDCSnackbarMessage(text: "Message text")
snackBarMessage.automaticallyDismisses = false
MDCSnackbarMessage *snackBarMessage = [MDCSnackbarMessage messageWithText:@"Message text"];
snackBarMessage.automaticallyDismisses = NO;

New deprecations

ButtonBar

FeatureHighlight

List

Tabs

TextFields

Multi-component changes

Component changes

BottomAppBar

Cards

Chips

Dialogs

List

Snackbar

v98.0.0

18 Dec 12:04
Compare
Choose a tag to compare

98.0.0

In this major release we deleted and deprecated numerous APIs in ActionSheet, BottomNavigation,
Cards, List.
Fix issue with unbounded ink. NavigationDrawer now allows its trackingScrollView to be resettable.

Breaking changes

ActionSheet

Delete inkColor and enableRippleBehavior from MDCActionSheetItemTableViewCell

BottomNavigation

Delete MDCBottomNavigationBarTypographyThemer

New deprecations

List

Deprecate MDCListColorThemer

Deprecate MDCListTypographyThemer

API changes

BottomNavigation

removed class: MDCBottomNavigationBarTypographyThemer. Please use the Theming extension instead.

List

deprecated class: MDCListColorThemer. Please use MaterialList+Theming instead.

deprecated class: MDCListTypographyThemer. Please use MDCSelfSizingStereoCell+MaterialTheming instead. (Note: Typography theming is no longer available as an independent API.)

Component changes

ActionSheet

Banner

BottomNavigation

Cards

Ink

List

NavigationDrawer

Tabs

Multi-component changes

v97.0.1

13 Dec 16:17
Compare
Choose a tag to compare

97.0.1

This hotfix patch release fixes the podspec. The previous release forgot to remove deleted references to card themers.

v97.0.0

12 Dec 17:49
Compare
Choose a tag to compare

97.0.0

In this major release we deleted and deprecated numerous APIs in ActionSheet, BottomNavigation,
ButtonBar, Cards, Feature highlight, Ink, Page control, Snackbar, TextField, and Tabs. We also
fixed Chip padding for Material theming.

Breaking changes

ActionSheet

Delete inkColor and enableRippleBehavior properties.

BottomNavigation

Delete MDCBottomNavigationBarColorThemer

Cards

Delete MDCCardsColorThemer
Delete MDCCardsShapeThemer

FeatureHighlight

Delete MDCFeatureHighlightFontThemer

Ink

Delete MDCInkColorThemer

List

Delete MDCListThemer

PageControl

Delete MDCPageControlColorThemer

ProgressView

Delete MDCProgressViewColorThemer

Snackbar

Delete MDCSnackbarColorThemer

Tabs

Delete MDCTabBarFontThemer

TextFields

Delete MDCTextFieldFontThemer

New deprecations

Buttons

Deprecate MDCButtonColorThemer
Deprecate MDCFloatingActionButtonThemer
Deprecate MDCTextButtonThemer
Deprecating MDCButtonScheme
Deprecating MDCButtonShapeThemer
Deprecating MDCButtonTypographyThemer
Deprecating MDCContainedButtonThemer
Deprecating MDCOutlinedButtonThemer

Cards

Delete Themer classes

FeatureHighlight

Deprecate MDCFeatureHighlightTypographyThemer

NavigationDrawer

Deprecate MDCBottomDrawerColorTHemer

TextFields

Deprecate MDCTextFieldTypographyThemer
Deprecate MDCOutlinedTextFieldColorThemer

API changes

ActionSheet

removed property: inkColor in MDCActionSheetController. Use rippleColor instead.

removed property: enableRippleBehavior in MDCActionSheetController. Use ripple.

Navigation Bar

removed class: MDCBottomNavigationBarColorThemer. Use MaterialBottomNavigation+Theming instead.

Buttons

deprecated protocol: MDCButtonScheming. Please use MDCContainerScheming.

deprecated class: MDCButtonScheme. Please use MDCContainerScheming.

deprecated class: MDCContainedButtonThemer. Please use MDCButton:applyContainedThemeWithScheme: instead.

deprecated class: MDCFloatingActionButtonThemer. Please use [MDCFloatingButton applySecondaryThemeWithScheme:] instead.

deprecated class: MDCOutlinedButtonThemer. Please use MDCButton:applyOutlinedThemeWithScheme: instead.

deprecated class: MDCTextButtonThemer. Please use MDCButton:applyTextThemeWithScheme: instead.

deprecated class: MDCButtonColorThemer. Please use the MDCButton+MaterialTheming API instead.

deprecated class: MDCButtonShapeThemer. Please use MDCButton+MaterialTheming instead. (Note: Shape theming is no longer available as an independent API.).

deprecated class: MDCButtonTypographyThemer. Please use MDCButton+MaterialTheming instead. (Note: Typography theming is no longer available as an independent API.).

Cards

removed protocol: MDCCardScheming. MDCCardScheming was made obsolete by theming with MDCContainerSchemes.

removed class: MDCCardScheme. MDCCardScheming was made obsolete by theming with MDCContainerSchemes.

removed class: MDCCardThemer. Please use MaterialCards+Theming instead.

removed class: MDCCardsColorThemer. Please use MaterialCards+Theming instead.
removed class: MDCCardsShapeThemer. Please use MaterialCards+Theming instead.

FeatureHighlight

removed class: MDCFeatureHighlightFontThemer. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/7172 in order to indicate interest in a replacement API.
deprecated class: MDCFeatureHighlightTypographyThemer. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/7172 in order to indicate interest in a replacement API.

Ink

removed class: MDCInkColorThemer. Please use Ripple instead.

List

removed class: MDCListScheming. Please use MDCContainerScheme APIs.
removed class: MDCListScheme. Please use MDCContainerScheme APIs.
removed class: MDCListThemer. Please use MDCContainerScheme APIs.

BottomDrawer

deprecated class: MDCBottomDrawerColorThemer. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/7172 in order to indicate interest in a replacement API.

Page Control

removed class: MDCPageControlColorThemer. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/7172 in order to indicate interest in a replacement API.

ProgressView

removed class: MDCProgressViewColorThemer. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/7172 in order to indicate interest in a replacement API.

Snackbar

removed class: MDCSnackbarColorThemer. Please use the Theming extension instead.

Tab Bar

removed class: MDCTabBarFontThemer. Please use the theming extension instead.

TextField

deprecated class: MDCOutlinedTextFieldColorThemer. Please use the Theming extension on MDCTextInputControllerOutlined instead.

removed class: MDCTextFieldFontThemer. Please use the Theming extension, or MDCTextControls and their theming extensions instead.

deprecated class: MDCTextFieldTypographyThemer. Please use MDCTextInputControllerFilled+MaterialTheming.h or MDCTextInputControllerOutlined+MaterialTheming.h instead.

Thumb Track

removed property: thumbMaxRippleRadius in MDCThumbTrack. Opt-in to Ripple by setting enableRippleBehavior to YES, and then use thumbRippleMaximumRadius instead. Learn more at https://github.com/material-components/material-components-ios/tree/develop/components/Ink#migration-guide-ink-to-ripple

Component changes

Changes

ActionSheet

Banner

BottomNavigation

Buttons

Chips

Dialogs

FeatureHighlight

Ink

List

NavigationDrawer

PageControl

  • [Delete MDCPageControlColorThemer (#9202)](f3...
Read more

v96.0.0

10 Dec 06:15
Compare
Choose a tag to compare

96.0.0

In this major release we deleted and deprecated a bunch of APIs in BottomAppBar, Snackbar,
TextField, ActionSheet, BottomNavigation, ButtonBar, Cards, Feature highlight, Ink, Page control,
and Tabs. We also enables ripple by default on Action Sheet. It was using a legacy ink animation.

Breaking changes

BottomAppBar

Delete deprecated MDCBottomAppBarColorThemer

Snackbar

Delete snackbarMessageViewTextColor

TextField

Delete MDCTextFieldColorThemer

New deprecations

ActionSheet

Deprecated inkColor. Use the ripple APIs.

BottomNavigation

Deprecate MDCBottomNavigationTypography themer

ButtonBar

Deprecate MDCButtonBarColorThemer

Button

Deprecate MDCFloatingButtonShapeThemer

Cards

Deprecate MDCCardThemer

Feature highlight

Deprecate MDCFeatureHighlightFontThemer

Ink

Deprecate MDCInkColorThemer

Page Control

Deprecate-MDCPageControlColorThemer-applyColorScheme-toPageContro

Snackbar

Deprecate MDCSnackbarColorThemer

Tabs

Deprecate MDCTabBarColorThemer

TextFields

Deprecate MDCTextFieldFontThemer

New features

Chips

ChipFieldShouldBeginEditing method to MDCChipFieldDelegate to control if editing is allowed.

- (BOOL)chipFieldShouldBeginEditing:(MDCChipField *)chipField {
  return YES;
}

Snackbar

Adds elementToFocusOnDismiss to MDCSnackbarMessage so a client can specify a view to focus on after the snackbar message is dismissed.

snackBarMessage.elementToFocusOnDismiss = view;

API changes

ActionSheet

deprecated property: inkColor in MDCActionSheetController. Use rippleColor instead.

deprecated property: enableRippleBehavior in MDCActionSheetController. Use ripple.

BottomAppBar

deprecated class: MDCBottomAppBarColorThemer. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/7172 in order to indicate interest in a replacement API.

BottomNavigationBar

deprecated class: MDCBottomNavigationBarTypographyThemer. Please use the Theming extension instead.

ButtonBar

deprecated class: MDCButtonBarColorThemer. ButtonBar is not intended to be themed as a standalone component. Please theme it via the AppBar component's Theming extension instead.

Button

deprecated class: MDCFloatingButtonShapeThemer. Please use [MDCFloatingButton applySecondaryThemeWithScheme:] instead. (Note: Shape theming is no longer available as an independent API.

Cards

deprecated protocol: MDCCardScheming. MDCCardScheming was made obsolete by theming with MDCContainerSchemes.

deprecated class: MDCCardScheme. MDCCardScheming was made obsolete by theming with MDCContainerSchemes.

deprecated class: MDCCardThemer. Please use MaterialCards+Theming instead.

ChipField

new method: -chipFieldShouldBeginEditing: in MDCChipFieldDelegate. Asks the delegate if editing should begin in the specified chip field.

FeatureHighlight

deprecated class: MDCFeatureHighlightFontThemer. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/7172 in order to indicate interest in a replacement API.

Ink

deprecated class: MDCInkColorThemer. Please use Ripple instead.

Page Control

deprecated class: MDCPageControlColorThemer. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/7172 in order to indicate interest in a replacement API.

Snackbar

removed property: snackbarMessageViewTextColor in MDCSnackbarMessageView. Use messsageTextColor instead.

deprecated class: MDCSnackbarColorThemer. No replacement exists. Please comment on https://github.com/material-components/material-components-ios/issues/7172 in order to indicate interest in a replacement API.

new property: elementToFocusOnDismiss in MDCSnackbarMessage. Element to focus on snackbar message dismiss. Focuses the first element on screen after dismiss by default. The focus will change to the element only if the focus is on the snackbar message.

Tabs

deprecated class: MDCTabBarColorThemer. Please use the Theming extension instead.

Component changes

ActionSheet

Banner

BottomNavigation

ButtonBar

Buttons

Cards

Chips

Dialogs

FeatureHighlight

Ink

List

PageControl

Snackbar

Tabs

TextFields

  • [Delete MDCTextFieldColorThemer (#9109)](h...
Read more