Skip to content

Releases: material-components/material-components-ios

v42.2.0

12 Dec 17:09
Compare
Choose a tag to compare

API changes

Typography

UIFont(MaterialTypography)

new method: -mdc_fontSizedForMaterialTextStyle:scaledForDynamicType: in UIFont(MaterialTypography)

Component changes

ButtonBar

Changes

NavigationBar

Changes

TextFields

Changes

Typography

Changes

v42.1.0

12 Dec 15:21
Compare
Choose a tag to compare

New features

New MDCChipField API in the Chips component provides an interface through which a user can input a collection of string tokens.

API changes

Chips

MDCChipFieldDefaultContentEdgeInsets

new constant: MDCChipFieldDefaultContentEdgeInsets

MDCChipFieldDelimiter

new enum value: MDCChipFieldDelimiterReturn in MDCChipFieldDelimiter

new enum: MDCChipFieldDelimiter

new enum value: MDCChipFieldDelimiterAll in MDCChipFieldDelimiter

new enum value: MDCChipFieldDelimiterNone in MDCChipFieldDelimiter

new typedef: MDCChipFieldDelimiter

new enum value: MDCChipFieldDelimiterDefault in MDCChipFieldDelimiter

new enum value: MDCChipFieldDelimiterSpace in MDCChipFieldDelimiter

new enum value: MDCChipFieldDelimiterDidEndEditing in MDCChipFieldDelimiter

MDCChipField

new class: MDCChipField

new method: -focusTextFieldForAccessibility in MDCChipField

new method: -removeSelectedChips in MDCChipField

new method: -removeChip: in MDCChipField

new property: contentEdgeInsets in MDCChipField

new method: -addChip: in MDCChipField

new property: showPlaceholderWithChips in MDCChipField

new property: textField in MDCChipField

new property: minTextFieldWidth in MDCChipField

new property: chipHeight in MDCChipField

new method: -deselectAllChips in MDCChipField

new property: delegate in MDCChipField

new method: -selectChip: in MDCChipField

new property: chips in MDCChipField

new method: -clearTextInput in MDCChipField

new property: delimiter in MDCChipField

MDCChipFieldDelegate

new method: -chipField:didChangeInput: in MDCChipFieldDelegate

new protocol: MDCChipFieldDelegate

new method: -chipFieldHeightDidChange: in MDCChipFieldDelegate

new method: -chipFieldDidBeginEditing: in MDCChipFieldDelegate

new method: -chipField:didRemoveChip: in MDCChipFieldDelegate

new method: -chipField:didTapChip: in MDCChipFieldDelegate

new method: -chipField:shouldAddChip: in MDCChipFieldDelegate

new method: -chipFieldShouldBecomeFirstResponder: in MDCChipFieldDelegate

new method: -chipField:didAddChip: in MDCChipFieldDelegate

new method: -chipFieldShouldReturn: in MDCChipFieldDelegate

new method: -chipFieldDidEndEditing: in MDCChipFieldDelegate

MDCChipView

new property: shapeGenerator in MDCChipView

new method: -shadowColorForState: in MDCChipView

new method: -setShadowColor:forState: in MDCChipView

MDCChipFieldDefaultMinTextFieldWidth

new constant: MDCChipFieldDefaultMinTextFieldWidth

FeatureHighlight

MDCFeatureHighlightView

new property: mdc_adjustsFontForContentSizeCategory in MDCFeatureHighlightView

ShadowLayer

MDCShadowLayer(Subclassing)

new category: MDCShadowLayer(Subclassing)

Typography

UIFontDescriptor(MaterialTypography)

new class method: +mdc_standardFontDescriptorForMaterialTextStyle: in UIFontDescriptor(MaterialTypography)

UIFont(MaterialTypography)

new class method: +mdc_standardFontForMaterialTextStyle: in UIFont(MaterialTypography)

Component changes

AnimationTiming

Changes

AppBar

Changes

BottomAppBar

Changes

BottomNavigation

Changes

BottomSheet

Changes

ButtonBar

Changes

Buttons

Changes

Chips

Changes

CollectionLayoutAttributes

Changes

Collections

Changes

Dialogs

Changes

FeatureHighlight

Changes

FlexibleHeader

Changes

HeaderStackView

Changes

Ink

Changes

NavigationBar

Changes

Read more

Release 42.0.0

08 Dec 20:14
Compare
Choose a tag to compare

Breaking changes

MDCFloatingButtonShapeLargeIcon has been removed.

// Old code
MDCFloatingButton *button = 
    [MDCFloatingButton floatingButtonWithShape:MDCFloatingButtonShapeLargeIcon];

// New code
MDCFloatingButton *button = [[MDCFloatingButton alloc] init];

New deprecations

BottomSheet has a variety of new deprecations.

New features

MDCFloatingButton has a new mode property and can now be expanded.

MDCInkView has a new delegate-based API for responding to animation events.

It's now possible to customize fonts on Tabs.

API changes

ActivityIndicator

MDCActivityIndicatorDelegate

new method: -activityIndicatorModeTransitionDidFinish: in MDCActivityIndicatorDelegate

BottomSheet

UIViewController(MaterialBottomSheet)

deprecated property: mdc_bottomSheetPresentationController in UIViewController(MaterialBottomSheet). Assign an instance of MDCBottomSheetTransition to your view controller's mdm_transitionController.transition instead.

MDCBottomSheetTransitionController

deprecated class: MDCBottomSheetTransitionController. Assign an instance of MDCBottomSheetTransition to your view controller's mdm_transitionController.transition instead.

MDCBottomSheetPresentationControllerDelegate

deprecated protocol: MDCBottomSheetPresentationControllerDelegate. This API will soon be made private. Use MDCBottomSheetController instead.

MDCBottomSheetPresentationController

deprecated class: MDCBottomSheetPresentationController. This API will soon be made private. Use MDCBottomSheetController instead.

Buttons

MDCFloatingButton

new method: -setMaximumSize: in MDCFloatingButton

new property: imageTitleSpace in MDCFloatingButton

new method: -setContentEdgeInsets: in MDCFloatingButton

new method: -setMinimumSize: in MDCFloatingButton

new property: imageLocation in MDCFloatingButton

new method: -setMinimumSize:forShape:inMode: in MDCFloatingButton

new property: mode in MDCFloatingButton

new method: -setHitAreaInsets:forShape:inMode: in MDCFloatingButton

new method: -setContentEdgeInsets:forShape:inMode: in MDCFloatingButton

new method: -setHitAreaInsets: in MDCFloatingButton

new method: -setMaximumSize:forShape:inMode: in MDCFloatingButton

MDCFloatingButtonMode

new enum value: MDCFloatingButtonModeExpanded in MDCFloatingButtonMode

new enum value: MDCFloatingButtonModeNormal in MDCFloatingButtonMode

new enum: MDCFloatingButtonMode

MDCFloatingButtonShape

removed enum value: MDCFloatingButtonShapeLargeIcon in MDCFloatingButtonShape

MDCFloatingButtonImageLocation

new enum value: MDCFloatingButtonImageLocationLeading in MDCFloatingButtonImageLocation

new typedef: MDCFloatingButtonImageLocation

new enum: MDCFloatingButtonImageLocation

new enum value: MDCFloatingButtonImageLocationTrailing in MDCFloatingButtonImageLocation

Ink

MDCInkView

new property: animationDelegate in MDCInkView

MDCInkViewDelegate

new method: -inkAnimationDidStart: in MDCInkViewDelegate

new method: -inkAnimationDidEnd: in MDCInkViewDelegate

new protocol: MDCInkViewDelegate

Tabs

MDCTabBar

new property: selectedItemTitleFont in MDCTabBar

new property: titleTextTransform in MDCTabBar

new property: unselectedItemTitleFont in MDCTabBar

MDCTabBarTextTransform

new enum: MDCTabBarTextTransform

new enum value: MDCTabBarTextTransformAutomatic in MDCTabBarTextTransform

new typedef: MDCTabBarTextTransform

new enum value: MDCTabBarTextTransformUppercase in MDCTabBarTextTransform

new enum value: MDCTabBarTextTransformNone in MDCTabBarTextTransform

Component changes

ActivityIndicator

Changes

AppBar

Changes

BottomAppBar

Changes

BottomNavigation

Changes

BottomSheet

Changes

ButtonBar

Changes

Buttons

Changes

CollectionCells

Changes

Read more

Release 41.0.0

04 Dec 14:05
Compare
Choose a tag to compare

API changes

Dialogs

new class: MDCDialogTransition.

Ink

breaking changed property signature: MDCInkView's inkColor from null_resettable to nonnull.

new property: usesLegacyInkRipple.

Snackbar

breaking MDCSnackbarMessage's public APIs have all been annotated with nullability annotations.

TextFields

new class: MDCIntrinsicHeightTextView.

changed property signature: MDCMultilineTextField's textView changed from UITextView to MDCIntrinsicHeightTextView.

Component changes

BottomAppBar

Changes

Buttons

Changes

Dialogs

Changes

FeatureHighlight

Changes

FlexibleHeader

Changes

Ink

Changes

MaskedTransition

Changes

PageControl

Changes

ProgressView

Changes

ShadowElevations

Changes

ShadowLayer

Changes

Slider

Changes

Snackbar

Changes

Tabs

Changes

TextFields

Changes

Typography

Changes

Release 40.1.1

29 Nov 19:56
Compare
Choose a tag to compare

Component changes

Tabs

Changes

Release 40.1.0

29 Nov 14:59
Compare
Choose a tag to compare

API Changes

AnimationTiming

  • New enums: MDCAnimationTimingFunctionStandard, MDCAnimationTimingFunctionDeceleration, and MDCAnimationTimingFunctionAcceleration.

BottomSheet

  • New class: MDCBottomSheetTransition.

Tabs

  • New property: -selectionIndicatorTemplate.

  • New class: MDCTabBarIndicatorAttributes.

  • New protocol: MDCTabBarIndicatorContext.

  • New Protocol: MDCTabBarIndicatorTemplate.

  • New class: MDCTabBarUnderlineIndicatorTemplate.

Themes

  • New conformity: MDCColorScheme now conforms to NSObject.

Component changes

ActivityIndicator

Changes

AnimationTiming

Changes

AppBar

Changes

BottomAppBar

Changes

BottomNavigation

Changes

BottomSheet

Changes

ButtonBar

Changes

Buttons

Changes

Chips

Changes

CollectionCells

Changes

Collections

Changes

Dialogs

Changes

FeatureHighlight

Changes

FlexibleHeader

Changes

HeaderS...

Read more

Release 40.0.3

17 Nov 21:13
Compare
Choose a tag to compare

40.0.3

  • [Chips] Fix private header import (#2434)

Release 40.0.2

16 Nov 03:21
Compare
Choose a tag to compare
  • Fix missing step from 40.0.1: update version numbers throughout library.

Release 40.0.1

15 Nov 21:34
Compare
Choose a tag to compare
  • [Catalog] Added Import to catalog’s AppDelegate.

Release 40.0.0

15 Nov 19:51
Compare
Choose a tag to compare

API Changes

Bottom Sheet

  • Added trackingScrollView property to support better dragging.

Chips (new)

LibraryInfo (new)

  • Added LibraryInfo for accessing information about the MDC library itself.

Tabs

  • Added [MDCTabBar defaultHeightForBarPosition:itemAppearance:].

Text Fields

Component changes

ActivityIndicator

Changes

AppBar

Changes

BottomNavigation

Changes

BottomSheet

Changes

Chips

Changes

Collections

Changes

FlexibleHeader

Changes

LibraryInfo

Changes

MaskedTransition

Changes

PageControl

Changes

ProgressView

Changes

Slider

Changes

Tabs

Changes

TextFields

Changes

Themes

Changes