Material Components v59.0.0 Release Notes
-
π This major release removed the remaining encoding/decoding behaviors from components (tracking project) and fixed a variety of bugs in FlexibleHeader with relation to safe area insets.
π₯ Breaking changes
π AppBar, TextFields, BottomNavigation, and Ink all removed support for encoding/decoding their custom properties.
π New features
π FlexibleHeader has a new behavior,
inferTopSafeAreaInsetFromViewController
, which allows the flexible header to determine its safe area insets from its view controller context, rather than always assuming that the header will consume the entire screen. This new behavior is most useful in extensions and on the iPad when presenting modal dialogs or popovers. To enable the new behavior, you simply setinferTopSafeAreaInsetFromViewController
onMDCFlexibleHeaderViewController
toYES
.API changes
FlexibleHeader
MDCFlexibleHeaderView
π new property:
topSafeAreaGuide
inMDCFlexibleHeaderView
MDCFlexibleHeaderViewController
π new property:
inferTopSafeAreaInsetFromViewController
inMDCFlexibleHeaderViewController
TextFields
MDCTextInputControllerLegacyFullWidth
modified class:
MDCTextInputControllerLegacyFullWidth
Type of change: Declaration From: @interface MDCTextInputControllerLegacyFullWidth : MDCTextInputControllerFullWidth <NSSecureCoding>
To: @interface MDCTextInputControllerLegacyFullWidth : MDCTextInputControllerFullWidth
MDCTextInputUnderlineView
modified class:
MDCTextInputUnderlineView
Type of change: Declaration From: @interface MDCTextInputUnderlineView : UIView <NSCopying, NSSecureCoding>
To: @interface MDCTextInputUnderlineView : UIView <NSCopying>
MDCTextInputController
modified protocol:
MDCTextInputController
Type of change: Declaration From: @protocol MDCTextInputController <NSObject, NSSecureCoding, NSCopying, MDCTextInputPositioningDelegate>
To: @protocol MDCTextInputController <NSObject, NSCopying, MDCTextInputPositioningDelegate>
Component changes
AppBar
π₯ Breaking changes
- π₯ Breaking: Remove encoding/decoding behavior for custom properties (#4566) (featherless)
Ink
π₯ Breaking changes
- π₯ Breaking: Remove encoding/decoding behavior for custom properties (#4555) (featherless)
TextFields
π₯ Breaking changes
- π₯ Breaking: Remove encoding/decoding behavior for custom properties (#4567) (featherless)
BottomAppBar
π Changes
- Fix example (#4616) (Robert Moore)
BottomSheet
π Changes
- Replacing typeof(self) by __typeof(self) (#4617) (JΓ©rΓ΄me Lebel)
BottomNavigation
π₯ Breaking changes
- π₯ Breaking: Remove encoding/decoding behavior for custom properties (#4562) (featherless)
FlexibleHeader
π Changes
- Add behavior for enabling contextual safe area insets (#4596) (featherless)
- Fix iPhone X status bar bug when changing orientation. (#4592) (featherless)
- Fix inconsistent shifting behavior when deceleration ends. (#4622) (featherless)
- Improved height consistency when horizontally paging. (#4601) (featherless)
- π Remove Swift typical use example. (#4595) (featherless)