This repository was archived by the owner on Dec 11, 2025. It is now read-only.
v94.2.0
This minor release introduces new APIs to MDCAppBarViewController and MDCSlider. Additionally, it includes some fixes for Banner constraints.
New Features
AppBar
MDCAppBarViewController allows automatically adjust the height of the app bar based on its headerStackView.
Objective-C
MDCAppBarViewController *appBar= [[MDCAppBarViewController alloc] init];
appBar.shouldAdjustHeightBasedOnHeaderStackView = YES;Swift
let appBar = MDCAppBarViewController()
appBar.shouldAdjustHeightBasedOnHeaderStackView = trueSlider
MDCSlider allows having a continuous Slider that shows track tick marks.
Objective-C
MDCSlider *slider = [[MDCSlider alloc] init];
slider.discrete = NO;
slider.numberOfDiscreteValues = 5;Swift
let slider = MDCSlider()
slider.discrete = false
slider.numberOfDiscreteValues = 5;API changes
AppBar
MDCAppBarViewController
new property: shouldAdjustHeightBasedOnHeaderStackView in MDCAppBarViewController
Slider
MDCSlider
new property: discrete in MDCSlider
Component changes
AppBar
Banner
- Add an example to show how Banner can be used as bottom bar in AppBar. (#8785) (Wenyu Zhang)
- Deactivate custom constraints when there is a need to update constraints.(#8793) (Wenyu Zhang)
- update constraint when frame is changed. (#8765) (Wenyu Zhang)
Slider
- Fix event handling. (#8759) (Robert Moore)