Skip to content

v100.0.0

Compare
Choose a tag to compare
@codeman7 codeman7 released this 02 Jan 17:10
· 1608 commits to stable since this release

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