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)