Releases: material-components/material-components-ios
v124.2.0
In this minor release, we added opt-in feature from MDCShadowLayer to MDCShadow for several components, annotated APIs with tvOS availability, and fixed a variety of bugs on components.
New features
BottomSheet
MDCBottomSheetController
has a new ignoreKeyboardHeight
property to control BottomSheet's behavior when keyboard is present.
Chips
MDCChipFieldDelegate
has a new delegate method chipFieldShouldEndEditing
to match chipFieldShouldBeginEditing
.
Component changes
ActionSheet
- Allow clients to get the view associated with a given action. (Cody Weaver)
- Inform the delegate that the action sheet is dismissed when the dismissal is issued from the accessibility gesture. (Nobody)
ActivityIndicator
- Internal change. (Nobody)
BottomNavigation
- Adds opt-in from MDCShadowLayer to MDCShadow. (Yarden Eitan)
- Only initialize blur effect view if it is not hidden. (Alyssa Weiss)
BottomSheet
- Add ignoreKeyboardHeight to allow configuring bottomSheet's behavior when keyboard is present. (Wenyu Zhang)
- Adjust content view frame when safe area insets change. (Alyssa Weiss)
- Fix Bottom sheet bug that was causing flickering. (Alyssa Weiss)
ButtonBar
Buttons
- Attempt to reduce flakiness of the buttons screenshot tests. (Jeff Verkoeyen)
Cards
- Fix broken examples (Yarden Eitan)
Chips
- Extract clear button from MDCChipField (Andrew Overton)
- This CL makes two changes: 1. Adds a new delegate method
chipFieldShouldEndEditing
to matchchipFieldShouldBeginEditing
2. Moved the call to the chip field delegate forchipFieldDidBeginEditing
andchipFieldDidEndEditing
so they are fired at the correct time. (Nobody)
Dialogs
- Avoid cutting off the top of Thai characters with diacritics. In iOS platform, text font are not strictly required to fit within the UIFont.lineHeight. Some Thai characters with diacritics are rendered outside the UILabel/UITextView's bounds. (Nobody)
- Groups MDCAlertController view's accessibility children. (Nobody)
- Inform the dialogPresentationControllerDelegate that the alert controller is dismissed when the dismissal is issued from the accessibility gesture. (Nobody)
NavigationBar
- Upgrade Swift to 5. (Jeff Verkoeyen)
Shadow
- Add initial readme file with simple usage guide. (Yarden Eitan)
- Code improvements for the new Shadow component. (Yarden Eitan)
- Dragon Catalog example of new in-development Shadow component. (Ben Hamilton)
- Move MDCShadowForElevation to become an instance method of MDCShadowsCollection. (Yarden Eitan)
- Remove attribute((fallthrough)) (Yarden Eitan)
Typography
- Deleted scaledValueForValue API from Material Typography. (Alyssa Weiss)
- Remove description related to iOS 9 as there is no longer iOS 9 support (Alyssa Weiss)
Multi-component changes
- Add opt-in new performant shadow support. (Yarden Eitan)
- Annotate APIs with tvOS availability. (Jeff Verkoeyen)
- Disable label animation when label is truncated (Andrew Overton)
- Fix broken images in iOS/Supporting APIs dev docs (Nobody)
- Fix build errors related to the Shadow component. (Jeff Verkoeyen)
- Flattening all unit tests into single directories as per convention. (Jeff Verkoeyen)
- Internal Change (Yarden Eitan)
- Internal change. (Jeff Verkoeyen)
- Internal change. (Jeff Verkoeyen)
- Miscellaneous doc updates (Andrew Overton)
- Remove all iOS 10 availability checks from material_components_ios now that only iOS 10+ is supported. (Alyssa Weiss)
v124.1.1
124.1.1
In this minor release we added a new Shadow Component and removed the Shrine demo.
New features
A new Shadow Component.
API changes
Shadow
Use the new Shadow component to create a shadow adjusted to your elevation:
MDCShadow *lowElevationShadow = MDCShadowForElevation(2);
MDCShadow *highElevationShadow = MDCShadowForElevation(24);
let lowElevation = MDCShadowForElevation(2)
let highElevation = MDCShadowForElevation(24)
Component changes
Shadow
v124.0.1
This patch release fixes a bug in BottomNavigation.
Component changes
BottomNavigation
v124.0.0
In this release MDCTextField
and its associated classes and protocols are deprecated. We also deleted the Pesto example application and cleaned up pre iOS 12 checks in the library.
Breaking changes
MDCTextField
and its associated classes and protocols are deprecated.
API changes
- All classes and protocols under in the
components/TextFields
folder are now deprecated.
Component changes
TextFields
- Deprecate MDCTextField and its associated classes/protocols (Andrew Overton)
Multi-component changes
- Internal change (Jeff Verkoeyen)
v123.0.0
In this major release we have made the MDCBottomNavigationBarController class and its APIs only be available from iOS 12 and up.
Breaking changes
The MDCBottomNavigationBarController class now only supports iOS 12 and up.
Component changes
ActivityIndicator
- Add unit tests. (Cody Weaver)
BottomNavigation
- Annotate APIs as only supporting iOS 12+. (Jeff Verkoeyen)
Dialogs
v122.0.1
This patch release fixes a bug and generally cleans up import statements.
Component changes
BottomNavigation
NavigationDrawer
- Increase code coverage by adding more tests. (Yarden Eitan)
Multi-component changes
- Optimizing imports (Jeff Verkoeyen)
- Optimizing imports (Jeff Verkoeyen)
- Optimizing imports (Jeff Verkoeyen)
- Optimizing imports (Jeff Verkoeyen)
- Optimizing imports (Jeff Verkoeyen)
- Optimizing imports (Jeff Verkoeyen)
v122.0.0
In this major release, we have made some API-breaking changes and landed some bug fixes and test improvements.
Breaking changes
FlexibleHeader
- FlexibleHeader's topSafeAreaGuide is now a UIView.
ProgressView
- We've removed generics annotations from ProgressView's progressTintColors.
Component changes
AppBar
- Optimizing imports (Jeff Verkoeyen)
BottomNavigation
- Ensure correct Voiceover behavior in iOS 14. (Alyssa Weiss)
Buttons
- Add inferMinimumAndMaximumSizeWhenMultiline (Andrew Overton)
- Internal change (Andrew Overton)
Collections
- Optimizing imports (Jeff Verkoeyen)
Dialogs
- Fixed typo in API doc. (Randall Li)
FlexibleHeader
- Redefine topSafeAreaGuide as a UIView. (Randall Li)
ProgressView
- Add snapshot and unit tests. (Alyssa Weiss)
- Remove generics from ProgressView's progressTintColors (Andrew Overton)
Tabs
- Optimizing imports (Cody Weaver)
Multi-component changes
- Clean up markdown formatting. (Nobody)
- Expose density on text fields and text areas (Andrew Overton)
- Optimizing imports (Jeff Verkoeyen)
- Optimizing imports (Jeff Verkoeyen)
- Optimizing imports (Jeff Verkoeyen)
- Optimizing imports (Jeff Verkoeyen)
- Optimizing imports (Jeff Verkoeyen)
v121.0.1
121.0.1
In this patch release we made some internal improvements to our imports and refined our deprecation policy.
Component changes
BottomNavigation
- Fix imports for MDCBottomNavigationItemView. (Alyssa Weiss)
- Remove unused 'kOfAnnouncement' and fix imports. (Alyssa Weiss)
Ripple
- Declare parameter type NSArray in the Ripple implementation. (Yarden Eitan)
TextControls
- Fix imports for clang tidy (Andrew Overton)
Typography
- UIFont MDC simple equality: updated class docs. (Randall Li)
v121.0.0
121.0.0
In this major release, we added a scrollViewBounce
property and a adjustHeightForSafeAreaInsets
property to BottomSheets, added a shouldAutorotateOverride
property, a preferredInterfaceOrientationForPresentationOverride
property, a supportedInterfaceOrientationsOverride
property, and a modalTransitionStyleOverride
property to MDCAlertController, and converted progressTintColors
property on MDCProgressView to use light weight generics.
Breaking changes
ProgressView
MDCProgressView's property progressTintColors
started using light weight generics so values pass in need to be typed correctly.
New features
BottomSheet
Bottom sheets have new propertie that turn off the overscroll and safe area insets.
Dialogs
Added a shouldAutorotateOverride
property, a preferredInterfaceOrientationForPresentationOverride
property, a supportedInterfaceOrientationsOverride
property, and a modalTransitionStyleOverride
property to MDCAlertController.
ProgressView
Converted progressTintColors
property on MDCProgressView to use light weight generics.
Component changes
BottomSheet
- Add BOOL property for whether or not the height of the bottom sheet should adjust for safe area insets. (Alyssa Weiss)
- Add flag that turns off simulated bouncing when there isn't a tracking scroll view (Andrew Overton)
Buttons
- Add documentation for Enums. (Cody Weaver)
Chips
- Add docs for MDCChipField (Andrew Overton)
Dialogs
List
ProgressView
- Add Objective-C generics to MDCProgressView (Andrew Overton)
v120.0.0
120.0.0
In this major release, we deleted the elevationOverlayColor
property from MDCSemanticColorScheme, added a placeholderColor
property to MDCTextControls, added a shapedBorderColor
property and a shapedBorderWidth
property to MDCShapedView, and made multiple bug fixes.
Breaking changes
ColorScheme
The elevationOverlayColor
property has been deleted.
New features
ShapedView
Added shapedBorderColor
and shapedBorderWidth
properties.
TextControls
Added placeholderColor
property.
Component changes
BottomSheet
- Fix bug that was causing messy animation when a keyboard is going to appear after the bottom sheet dismisses. (Alyssa Weiss)
NavigationDrawer
ShadowLayer
- Add example for performance testing. (Cody Weaver)
Shapes
Snackbar
- Add present+dismiss unit test for legacy snackbar. (Yarden Eitan)
- Make imports more explicit (Cody Weaver)
Tabs
- Remove iOS 10 check in accessibilityTrait handling since only iOS 10 + is supported now (Alyssa Weiss)
TextControls
- Add placeholderColor property (Andrew Overton)