Release 42.0.0
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
- Add a delegate callback for the activity indicator mode animation (#2537) (John Detloff)
- Add compile time flag for import style (#2562) (Louis Romero)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
AppBar
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [AppBar:ColorThemer] Add nullability annotations (#2536) (Brian Moore)
BottomAppBar
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
BottomNavigation
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Ensure item top and bottom content insets are identical (#2579) (Junius Gunaratne)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Ink] Use updated ink for bottom navigation (#2567) (Junius Gunaratne)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
BottomSheet
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Deprecate to-be-removed APIs. (#2539) (featherless)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
ButtonBar
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Cleanup] remove checks for iOS8 and above as we now only support iOS8+ (#2555) (Yarden Eitan)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
Buttons
Changes
- Add BUILD file for kokoro (#2599) (Robert Moore)
- Add compile time flag for import style (#2562) (Louis Romero)
- Extended FAB (#2563) (Robert Moore)
- Readability for newlines (#2568) (Robert Moore)
- Rename
imageTitleSpace(#2565) (Robert Moore) - Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Ink] Enable updated ink on MDCButton, add support for shadowPaths (#2530) (Junius Gunaratne)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
CollectionCells
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Ink] Enable updated ink for collection views (#2546) (Junius Gunaratne)
Dialogs
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Call actionHandlers after the alert has been dismissed (#2490) (ianegordon)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Cleanup] remove checks for iOS8 and above as we now only support iOS8+ (#2555) (Yarden Eitan)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
FeatureHighlight
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
FlexibleHeader
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Cleanup] remove checks for iOS8 and above as we now only support iOS8+ (#2555) (Yarden Eitan)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
HeaderStackView
Changes
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
Ink
Changes
- Add MDCInkViewDelegate (#2558) (Junius Gunaratne)
- Change ink fade out timing (#2576) (Junius Gunaratne)
- Enable updated ink on MDCButton, add support for shadowPaths (#2530) (Junius Gunaratne)
- Prevent ink layers from collecting. Copy sublayers before calling removeFromSuperlayer (#2596) (Junius Gunaratne)
- Use updated ink for bottom navigation (#2567) (Junius Gunaratne)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
LibraryInfo
Changes
- Fix version numbers for statically-compiled components. (#2544) (Adrian Secord)
MaskedTransition
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
NavigationBar
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
PageControl
Changes
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
ProgressView
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Execute the same logical paths for completion and animation. (#2564) (featherless)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
ShadowLayer
Changes
- Animate shadow resizing (#2523) (Sam Morrison)
Snackbar
Changes
Tabs
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Allow customization of fonts and text transform (#2547) (Brian Moore)
- Enable new ink (#2616) (Junius Gunaratne)
- Replace mdc_animateWithTimingFunction with standard UIKit/QuartzCore APIs. (#2548) (featherless)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Cleanup] remove checks for iOS8 and above as we now only support iOS8+ (#2555) (Yarden Eitan)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
TextFields
Changes
- Add compile time flag for import style (#2562) (Louis Romero)
- Removing extra calls in setupClearButton. (#2541) (Will Larche)
- Revert "Add compile time flag for import style (#2562)" (#2612) (featherless)
- [Cleanup] remove checks for iOS8 and above as we now only support iOS8+ (#2555) (Yarden Eitan)
- [Themers] Add nullability to themers (#2551) (Junius Gunaratne)
Themes
Changes
- Add BUILD file for kokoro (#2601) (Robert Moore)