Skip to content

v115.1.0

Compare
Choose a tag to compare
@yarneo yarneo released this 11 Sep 20:32
· 390 commits to stable since this release

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

Chips

Snackbar

Tabs

TextControls