Releases: material-components/material-components-ios
v118.1.0
In this minor release, we have made several improvements to the TextControls component.
New features
TextControls
Added -baseTextFieldShouldDeleteBackward:
and -baseTextField:shouldPerformAction:withSender:canPerformAction:
to MDCBaseTextFieldDelegate
.
Component changes
TextControls
- Add -baseTextField:shouldPerformAction:withSender:canPerformAction: (Andrew Overton)
- Add shouldDeleteBackward delegate method (Andrew Overton)
- consider floating label min Y in - accessibilityPath (Andrew Overton)
v118.0.1
118.0.1
In this patch release, an MDCNavigationDrawer bug for accessibility dismissal is fixed and references to deprecated Math APIs are removed.
Component changes
NavigationDrawer
Snackbar
- Replace snackbar docs (Andrew Overton)
private/Math
- Remove use of deprecated methods. (Aron Budinszky)
v118.0.0
In this major release we deleted all deprecated MDCSnackbarManager APIs, and made minor bug fixes and reorganizations.
Breaking changes
Snackbar
All Deprecated MDCSnackbarManager APIs have been deleted. For any of these APIs, instead of calling anything on MDCSnackbarManager, use MDCSnackbarManager.defaultManager and the same API will be available.
API changes
Component changes
ActionSheet
- Flatten the unit tests into a single directory. (Jeff Verkoeyen)
- Update all test and example files to match conventions. (Jeff Verkoeyen)
Chips
- Replace Chips docs (Andrew Overton)
Dialogs
Snackbar
- Delete all deprecated APIs. (Jeff Verkoeyen)
v117.0.0
In this major release, we deleted the buttonFont
property on MDCAlertController
, added the accessoryViewHorizontalInset
property to MDCAlertControllerView
, made minor bug fixes, and deprecated numerous APIs across multiple components.
Breaking changes
Dialogs
The buttonFont
property on MDCAlertController
has been deleted. To set a button font in a dialog use the -buttonForAction:
method to get the button, then call -setFont:
on its titleLabel
.
New deprecations
This release contains deprecations in ButtonBar, FeatureHighlight, NavigationBar, FlexibleHeader, AppBar, ThumbTrack, and TabBar. See the component section for specifics.
New features
Dialogs
Dialogs has a new accessoryViewHorizontalInset
API.
Component changes
ActivityIndicator
- Update default stroke width to be 2.5 (Alyssa Weiss)
AppBar
- Deprecate API from MDCAppBarNavigationController. (Yarden Eitan)
- Deprecate AppBar color themer APIs. (Yarden Eitan)
ButtonBar
- Deprecate inkColor API. (Yarden Eitan)
Dialogs
- Add an accessoryView with a collection example (Galia Kaufman)
- Adding accessoryViewHorizontalInset API (Galia Kaufman)
- Delete deprecated buttonFont for MDCAlert and make all appropriate changes following deletion (Alyssa Weiss)
- Deprecate button styling APIs. (Yarden Eitan)
FeatureHighlight
- Deprecate color themer APIs. (Yarden Eitan)
FlexibleHeader
- Deprecate MDCFlexibleHeaderMinMaxHeight API. (Yarden Eitan)
- Deprecate pre iOS 8 ToBeDeprecated APIs. (Yarden Eitan)
NavigationBar
- Deprecate color themer APIs. (Yarden Eitan)
- Deprecate typography themer APIs. (Yarden Eitan)
Tabs
- Deprecate typography themer API. (Yarden Eitan)
- Scroll to selected item when there is an orientation/size change. (Yarden Eitan)
TextControls
- Translate frame to window coordinates in accessibilityPath (Andrew Overton)
private/Math
- Deprecate all APIs that have a direct standard library equivalent. (Jeff Verkoeyen)
private/ThumbTrack
- Deprecate Ink APIs. (Yarden Eitan)
Multi-component changes
- Internal change (Jeff Verkoeyen)
v116.0.1
This patch release contains various bug fixes and internal cleanup.
Component changes
BottomNavigation
BottomSheet
- Mask elevation on bottom edge (Andrew Overton)
Dialogs
- Remove iOS 10+ checks now that the minimum support contract is iOS 10. (Alyssa Weiss)
- Update the testing for the localization snapshot tests. (Alyssa Weiss)
Slider
- Add call to [super prepareForReuse] in example. (Bryan Oltman)
- Remove checks for iOS 10 availability. (Bryan Oltman)
- Set thumbIsSmallerWhenDisabled to NO to match Material spec. (Wenyu Zhang)
Snackbar
- Internal change (Yun Zhang)
TextControls
- Override accessibilityPath in MDCBaseTextField (Andrew Overton)
private/ThumbTrack
- Do not adjust thumb size on touch down. (Bryan Oltman)
- Internal change (Bryan Oltman)
Multi-component changes
- Fix mdc_elevationDidChangeBlock block parameter types for Xcode 12 (Bryan Oltman)
- Internal change (Jeff Verkoeyen)
- Internal change (Jeff Verkoeyen)
- Remove ability for thumb view to grow while dragging. (Bryan Oltman)
v116.0.0
In this major release, we deleted the rippleAllowsSelection
property from MDCChipView and added containerRadius support to filled text fields.
API changes
- Chips:
rippleAllowsSelection
has been deleted from MDCChipView. - NavigationDrawer:
shouldDismissOnAccessibilityPerformEscape
property added to allow VoiceOver users to dismiss the Navigation Drawer using the VoiceOver dismiss gesture.
Component changes
Chips
- Have Ripple imitate Ink's behavior in MDCChipView. (Yarden Eitan)
Multi-component changes
- Optional dismiss on accessibilityPerformEscape. (Nobody)
- Add containerRadius support to filled text field (Andrew Overton)
- Internal change (Yarden Eitan)
v115.1.0
In this minor release we add 2 APIs to customize BottomNavigation's appearance and behavior, we deprecate the property rippleAllowsSelection
from MDCChipView
, we provide a containerRadius
API to MDCBaseTextField
and MDCBaseTextArea
, along with other code cleanups.
New deprecations
MDCChipView
's rippleAllowSelection
property is now deprecated. Please instead use native UIKit APIs to control whether the chip is selected or not, using either the .selected API, or, with MDCChipCollectionViewCell, by calling the deselectItemAtIndexPath
API to remove selection. Note, this only applies if you have the enableRippleBehavior
property set to YES
on MDCChipView
.
New features
BottomNavigation
You can now customize MDCBottomNavigationBar's height using the barHeight
property.
MDCBottomNavigationBar *bottomNavBar;
bottomNavBar = [[MDCBottomNavigationBar alloc] initWithFrame:CGRectZero];
bottomNavBar.barHeight = 44;
[self.view addSubview:bottomNavBar];
You can now also decide when to hide or show your navigation bar using the new navigationBarHidden
APIs on MDCBottomNavigationBarController.
let bottomNavBarController = MDCBottomNavigationBarController()
bottomNavBarController.willMove(toParent: self)
view.addSubview(bottomNavBarController.view)
addChild(bottomNavBarController)
bottomNavBarController.didMove(toParent: self)
let viewController = UIViewController()
bottomNavBarController.viewControllers = [viewController]
bottomNavBarController.setNavigationBarHidden(true, animated: true)
TextControls
Both MDCBaseTextArea
and MDCBaseTextField
now have a containerRadius
API, which determines the corner radius of the container, when applicable.
Setting this property is a no-op for MDCBaseTextField and any subclasses with invisible containers.
let filledTextField = MDCFilledTextField()
filledTextField.label.text = "label text"
filledTextField.containerRadius = 8
Component changes
Banner
BottomNavigation
- Add navigationBarHidden property to MDCBottomNavigationBarController. (Bryan Oltman)
- Provide an API to set the bar's height. (Yarden Eitan)
- Remove all checks for iOS 10 availability now that components support iOS 10+ (Alyssa Weiss)
- Remove no longer used string bundle references (Alyssa Weiss)
- Remove supplemental directory from examples. (Bryan Oltman)
- Update Bottom Navigation Item View accessibility traits so that VoiceOver works correctly on iOS 14. (Alyssa Weiss)
Chips
Snackbar
- Enable shouldDismissOnOverlayTap for VO enabled scenario (Yun Zhang)
- Example: Dismiss snackbars when push or popping the example VC. (Randall Li)
- Remove non-shared classes from Snackbar supplemental directory. (Bryan Oltman)
- Remove references to deprecated static MDCSnackbarManager methods. (Bryan Oltman)
Tabs
- Remove pre-iOS 10 handling for voiceover now that components support iOS 10+ (Alyssa Weiss)
- Remove unused StringsConstant file from Tabs (Alyssa Weiss)
TextControls
- Refactor sizing behavior + expose sizing delegate method (Andrew Overton)
- Add
containerRadius
to MDCBaseTextField (Andrew Overton) - Add containerRadius to filled style object and base text area (Andrew Overton)
v115.0.0
In this major release, we deprecated the Ink component in favor of Ripple and deleted the
deprecated fontSize
property from the ThumbTrack component.
Breaking changes
The fontSize
property of ThumbTrack is now deleted. Please use the font
property instead.
New deprecations
The Ink component has been deprecated. Please use Ripple instead.
Component changes
BottomNavigation
Collections
Dialogs
TextControls
- Improve TextControls test coverage (Andrew Overton)
private/ThumbTrack
- Delete deprecated fontSize property. (Wenyu Zhang)
Multi-component changes
- Official deprecation of Ink. (Yarden Eitan)
v114.0.0
114.0.0
In this major release we have updated BottomNavigation safe area calculations and removed the deprecated sizeThatFitsIncludesSafeArea
API, including a minor bug fix for Dialogs.
Breaking changes
BottomNavigation
The deprecated sizeThatFitsIncludesSafeArea property is deleted.
Component changes
BottomNavigation
- Align barItemsBottomAnchor with safeAreaInsets. (Wenyu Zhang)
- Delete deprecated sizeThatFitsIncludesSafeArea property. (Wenyu Zhang)
Dialogs
- Update logic for using title insets in calculations (Alyssa Weiss)
Multi-component changes
- Remove reference to beta (Andrew Overton)
v113.2.0
113.2.0
In this minor release we have made minor improvements to BottomNavigation, NavigationDrawer and Tabs.
New features
Adding a new property to MDCBottomDrawerViewController and MDCBottomDrawerContainerViewController that allows for non-fullscreen mobile landscape bottom drawer view.
drawerViewController.shouldDisplayMobileLandscapeFullscreen = false
Component changes
BottomNavigation
- Clarify wording to reflect that enableRippleBehavior is To Be Deprecated and can still be used in new code (Alyssa Weiss)
- Set default horizontal item padding to 0 (Alyssa Weiss)
- Update accessibility logic when switching selected view controllers so that VoiceOver will always switch to a new element visible on screen (Alyssa Weiss)
NavigationBar
- Add example to demonstrate how to to set source for popover alert on iPad. (Bryan Oltman)
- Delete supplemental code from Swift examples (Bryan Oltman)
NavigationDrawer
- Adds shouldDisplayMobileLandscapeFullscreen property to MDCBottomDrawerContainerViewController and MDCBottomDrawerPresentationController to share the property between MDCBottomDrawerContainerViewController and MDCBottomDrawerViewController. (Nobody)
- Replace navigation drawer component README (Andrew Overton)