Material Components v92.4.0 Release Notes
Release Date: 2019-10-16 // over 4 years ago-
๐ This minor release addresses issues with Dialogs in Dark Mode, adds delegate methods for Navigation Drawer, and makes Outlined Text Areas more configurable.
๐ New deprecations
๐ This minor release deprecates Chips+ChipThemer and MDCChipViewFontThemer.
๐ New features
MDCTextInputControllerOutlinedTextArea now allows users to specify
minimumLines
andexpandsOnOverflow
.MDCTextInputControllerOutlinedTextArea *textInputControllerOutlinedTextArea = [[MDCTextInputControllerOutlinedTextArea alloc] initWithTextInput:self.textField]; textInputControllerOutlinedTextArea.minimumLines = 1; textInputControllerOutlinedTextArea.expandsOnOverflow = YES;
let textInputControllerOutlinedTextArea = MDCTextInputControllerOutlinedTextArea(textInput: textField) textInputControllerOutlinedTextArea.minimumLines = 1 textInputControllerOutlinedTextArea.expandsOnOverflow = true
MDCBottomDrawerPresentationControllerDelegate has new methods that allow clients to respond to animation lifecycle events and touches to the scrim.
Touch events set to delegate
Touch events are propagated to delegate to allow clients to interpret touches in the scrim area.
navigationDrawer.dismissOnBackgroundTap = NO; navigationDrawer.shouldForwardTouchEvents = YES; ... - (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event { } - (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event { }
navigationDrawer.dismissOnBackgroundTap = false navigationDrawer.shouldForwardTouchEvents = true ... override public func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { } public override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) { }
Animation events sent to delegate
The animation lifecycle events are forwarded to the delegate so that clients can respond to them.
- (void)bottomDrawerControllerWillTransitionOpen:(nonnull MDCBottomDrawerViewController *)controller withCoordinator: (nullable id<UIViewControllerTransitionCoordinator>) transitionCoordinator targetYOffset:(CGFloat)targetYOffset { } - (void)bottomDrawerControllerDidEndOpenTransition:(MDCBottomDrawerViewController *)controller { } - (void) bottomDrawerControllerWillTransitionClosed:(nonnull MDCBottomDrawerViewController *)controller withCoordinator:(nullable id<UIViewControllerTransitionCoordinator>) transitionCoordinator targetYOffset:(CGFloat)targetYOffset { } - (void)bottomDrawerControllerDidEndCloseTransition:(MDCBottomDrawerViewController *)controller { } - (void)bottomDrawerControllerDidChangeTopYOffset: (nonnull MDCBottomDrawerViewController *)controller yOffset:(CGFloat)yOffset { }
public func bottomDrawerControllerWillTransitionOpen(_ controller: MDCBottomDrawerViewController, with transitionCoordinator: UIViewControllerTransitionCoordinator?, targetYOffset:CGFloat) { } public func bottomDrawerControllerDidEndOpenTransition(_ controller: MDCBottomDrawerViewController) { } public func bottomDrawerControllerWillTransitionClosed(_ controller: MDCBottomDrawerViewController, with transitionCoordinator: UIViewControllerTransitionCoordinator?) { } public func bottomDrawerControllerDidEndCloseTransition(_ controller: MDCBottomDrawerViewController) { } public func bottomDrawerControllerDidChangeTopYOffset(_ controller: MDCBottomDrawerViewController, yOffset: CGFloat) { } func transitionWith(_ controller: MDCBottomDrawerViewController, _transitionCoordinator: UIViewControllerTransitionCoordinator?, yOffset:CGFloat) { }
๐ Changes
BottomSheet
- Disable pan gesture on UIControl (#8491) (Linksmt)
Chips
- ๐ Add Dynamic Type support to ChipsActionExampleViewController. (#8565) (featherless)
- ๐ Add Dynamic Type support to ChipsInputExampleViewController. (#8569) (featherless)
- ๐ Add Dynamic Type support to the remaining chip collection examples. (#8567) (featherless)
- ๐ Deprecate Chips+ChipThemer. (#8593) (featherless)
- ๐ Deprecate MDCChipViewFontThemer. (#8589) (featherless)
- ๐ Move ChipModel into ChipsTypicalUseViewController. (#8579) (featherless)
- ๐ฑ Move all example assets to a supplemental file. (#8577) (featherless)
- ๐ Remove all lazy initialization of models from examples. (#8576) (featherless)
- ๐ Remove sizing chips from all remaining examples. (#8575) (featherless)
- ๐ Remove unnecessary explicit layout code. (#8564) (featherless)
- ๐ Remove unnecessary theming logic. (#8562) (featherless)
๐ Dialogs
- Explicitly set title and message color (#8588) (Cody Weaver)
NavigationDrawer
- Add delegate methods to allow the presenting VC to gain access to the transitionCoordinator used during the present/dismiss transitions. (#8566) (Randall Li)
- Allow touch events to propagate to delegate for MDCBottomNavigationDrawer (#8578) (Randall Li)
TextFields
Typography
- ๐ Remove checks for
systemFontOfSize:weight:
. (#8581) (Robert Moore)
Multi-component changes
- Reran ./scripts/generate_all_readmes (#8557) (Randall Li)