Material Components for iOS v115.1.0 Release Notes
Release Date: 2020-09-11 // over 3 years ago-
🚀 In this minor release we add 2 APIs to customize BottomNavigation's appearance and behavior, we deprecate the property
rippleAllowsSelection
fromMDCChipView
, we provide acontainerRadius
API toMDCBaseTextField
andMDCBaseTextArea
, along with other code cleanups.🆕 New deprecations
🚚
MDCChipView
'srippleAllowSelection
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 thedeselectItemAtIndexPath
API to remove selection. Note, this only applies if you have theenableRippleBehavior
property set toYES
onMDCChipView
.🆕 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
andMDCBaseTextField
now have acontainerRadius
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
- 🚚 Deprecate rippleAllowsSelection as we move away from MDCStatefulRippleView and to a simpler MDCRippleView when enableRippleBehavior is set to YES. (Yarden Eitan)
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)