v64.0.0
64.0.0
In this release
AlertControllers added a cornerRadius property to specify its shape.
FlexibleHeader added disableContentInsetAdjustmentWhenContentInsetAdjustmentBehaviorIsNever to let clients choose if the scrollview can adjust the contentInsets.
ChipField added showChipsDeleteButton to turn on the delete button on chips.
BottonSheet added preferredSheetHeight to let clients define a non half screen height.
Shape Subsystem integrated into many components including Button Cards and Chips.
Breaking changes
Card Buttons and Chips all are using the shape subsystem, which subtly changed the way their corner
radii are rendered.
New features
AlertControllers added a cornerRadius
A property to specify its shape.
MDCAlertController *alert = [MDCAlertController alertControllerWithTitle:@"title"
message:@"message"];
[alert addAction:[MDCAlertAction actionWithTitle:@"action1" handler:nil]];
alert.cornerRadius = cornerRadius;FlexibleHeader added disableContentInsetAdjustmentWhenContentInsetAdjustmentBehaviorIsNever
To make it easier to support scrollviews and content insets
_scrollView = [[UIScrollView alloc] initWithFrame:self.view.bounds];
if (@available(iOS 11.0, *)) {
_scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}ChipField added showChipsDeleteButton
Turns on the delete button on chips.
var chipField = MDCChipField()
chipField.frame = .zero
chipField.delegate = self
chipField.textField.placeholderLabel.text = "This is a chip field."
chipField.showChipsDeleteButton = trueBottonSheet added preferredSheetHeight to let clients define a non half screen height.
presentationController = [[MDCBottomSheetPresentationController alloc]
initWithPresentedViewController:stubPresentedViewController
presentingViewController:stubPresentingViewController];
presentationController.preferredSheetHeight = 100;API changes
BottomSheet
MDCBottomSheetTransitionController
new property: preferredSheetHeight in MDCBottomSheetTransitionController
MDCBottomSheetPresentationController
new property: preferredSheetHeight in MDCBottomSheetPresentationController
Buttons+ButtonThemer
MDCButtonScheming
new property: shapeScheme in MDCButtonScheming
MDCButtonScheme
new property: shapeScheme in MDCButtonScheme
Buttons+ShapeThemer
New component.
Chips+ChipThemer
MDCChipViewScheming
new property: shapeScheme in MDCChipViewScheming
MDCChipViewScheme
new property: shapeScheme in MDCChipViewScheme
Chips
MDCChipField
new property: showChipsDeleteButton in MDCChipField
Chips+ShapeThemer
New component.
Dialogs+DialogThemer
New component.
Dialogs
MDCAlertController
new property: cornerRadius in MDCAlertController
MDCAlertControllerView
new property: cornerRadius in MDCAlertControllerView
FlexibleHeader
MDCFlexibleHeaderView
new property: disableContentInsetAdjustmentWhenContentInsetAdjustmentBehaviorIsNever in MDCFlexibleHeaderView
Component changes
ActionSheet
- Initial commit (#5157) (Cody Weaver)
- Labels use text color instead of alpha (#5142) (Cody Weaver)
- Make header and table properties (Cody Weaver)
- Update the docs (#5134) (Cody Weaver)
AppBar
- [FlexibleHeaderView] Make FexibleHeaderView respect contentInsetAdjustmentBehavior (#4970) (#5073) (Wenyu Zhang)
BottomSheet
- Add property so clients can set a custom height for bottom sheet (#5139) (Cody Weaver)
- Add tests for
updatePreferredSheetHeight. (#5115) (Robert Moore) - Make
sheetViewa property. (#5122) (Robert Moore) - Use setter for sheet view height. (#5125) (Robert Moore)
- [Shape]! Provide more granularity for corner setting for the theming (#5116) (Yarden Eitan)
Buttons
Breaking changes
-
Breaking: Integrate the shape themer into the MDCButton themer (#5120) (Yarden Eitan)
-
Add the Floating Button Shape themer to the Floating Button themer (#5132) (Yarden Eitan)
-
Addition of a FAB shape themer (#5131) (Yarden Eitan)
-
Addition of a Shape Themer for MDCButton (#5119) (Yarden Eitan)
-
Integrate the FAB shape themer into our examples (#5133) (Yarden Eitan)
-
Integration of the button shape themer into the examples (#5121) (Yarden Eitan)
-
[Shapes] Bug fix for getting the wrong backgroundColor when shapeGenerator is set. (#5127) (Yarden Eitan)
Cards
Chips
Breaking changes
-
Breaking: Integrate the shape themer into the chip themer (#5112) (Yarden Eitan)
-
Add client the ability to delete chips in a chip field (#5135) (Cody Weaver)
-
Addition of a Shape Themer (#5111) (Yarden Eitan)
-
Integration of the chip themer into the examples (#5113) (Yarden Eitan)
-
Support RTL in MDCChipCollectionViewFlowLayout (#5079) (jsaletta)
-
Update example (#5118) (Cody Weaver)
-
[Shapes] Bug fix for getting the wrong backgroundColor when shapeGenerator is set. (#5127) (Yarden Eitan)
Dialogs
- Add a dialog themer (Galia Kaufman)
- Expose corner radius property (#4988) (Galia Kaufman)
FlexibleHeader
- Avoid nil logic in multiple tracking scroll view setting. (#5163) (featherless)
- [FlexibleHeaderView] Make FexibleHeaderView respect contentInsetAdjustmentBehavior (#4970) (#5073) (Wenyu Zhang)
PageControl
- [FlexibleHeaderView] Make FexibleHeaderView respect contentInsetAdjustmentBehavior (#4970) (#5073) (Wenyu Zhang)
Tabs
- Fix an example bug (#5106) (Cody Weaver)
TextFields
- Send .editingChanged control event on clear button touch (#5144) (Andrew Overton)