Changelog History
Page 10
-
v93.4.0 Changes
November 07, 201993.4.0
π This minor release adds a new Filled and Outlined TextFields that will eventually replace MDCTextField's filled and outlined controllers. Additionally, it fixes dynamic type issues for multiple components, and removes deprecated themers.
π New features
TextFields
- Add filled textfields (#8674) (Andrew Overton)
- Add outlined textfield (#8705) (Andrew Overton)
Component changes
ActivityIndicator
- Delete MDCActivityIndicatorColorThemer. (#8694) (featherless)
π Dialogs
- π Title supports Dynamic Type. (#8691) (Robert Moore)
TextFields
- β Add animation duration property to properly snapshot test MDCBaseTextField's subclasses (#8693) (Andrew Overton)
- Change base textfield floating label scale factor. (#8704) (Andrew Overton)
- Change label animation again (#8703) (Andrew Overton)
- Fix minor animation glitch when opening example (#8716) (Andrew Overton)
- π¨ Refactor label animation (#8700) (Andrew Overton)
- π¨ Refactor snapshots in preparation for more types of textfields (#8670) (Andrew Overton)
- Capture snapshots outside of view (#8718) (Andrew Overton)
- Add safety return to new multiline logic to make i⦠(#8695) (Yarden Eitan)
- Bring back original textInsets API for clients sub⦠(#8688) (Yarden Eitan)
FlexibleHeader
Add behavioral flag for animating shadow layer frames when tracking scroll view is changed (#8715) (featherless)
Expose an animation delegate on MDCFlexibleHeaderView. (#8712) (featherless)
π Move all supplemental code into the examples. (#8690) (featherless)
Slider
- β Add snapshot tests for setting preferredFont with adjuβ¦ (#8645) (Yarden Eitan)
ThumbTrack
- π [ThumbTrack] Add Font API and Dynamic Type support (#8708) (Yarden Eitan)
Multi-component changes
- π Deprecate the ShapeThemer extension. (#8697) (featherless)
-
v93.3.0 Changes
November 01, 2019π This minor release adds two new APIs to FlexibleHeader for contexts involving multiple tracking
scroll views (such as tabbed interfaces).π New features
MDCFlexibleHeaderView has a new API,
allowShadowLayerFrameAnimationsWhenChangingTrackingScrollView
, that can be used to enable shadow
layer frame animations when the header's height is animated after switching to a new tracking
0οΈβ£ scroll view. This flag is false by default, but will be enabled and then deleted in the future, so
please consider enabling it wherever you instantiate a flexible header or app bar.MDCFlexibleHeaderView has a new
animationDelegate
API that can be used to react to the completion
of the animation that occurs when changing tracking scroll views.Component changes
FlexibleHeader
-
v93.2.0 Changes
October 31, 2019π In this minor release TextFields support multiline error/helper text, FeatureHighlight supports Dynamic Type, OverlayWindow supports iOS 13 UIWindow scene initializer API, along with a PageControl dot placement fix, and additional component testing.
π New features
π FeatureHighlight
β‘οΈ You can now set
adjustsFontForContentSizeCategory
onMDCFeatureHighlightViewController
to automatically update your scalable font when content size category changes. Namely, whenadjustsFontForContentSizeCategory
is set toYES
the title and body fonts will scale appropriately if given a scalable font.OverlayWindow
π
MDCOverlayWindow
now supports being initialized withinitWithWindowScene:
as part of the newUIWindow
iOS 13 APIs.TextFields
π
MDCTextField
now supports multiline error and helper texts. To set this up you will need to change the number of lines and word wrapping of the label:MDCTextField *textField = [[MDCTextField alloc] init]; textField.leadingUnderlineLabel.numberOfLines = 0; textField.leadingUnderlineLabel.lineBreakMode = NSLineBreakByWordWrapping;
API changes
Component changes
π Changes
Banner
- β Add snapshot tests for setting preferredFont with adjustsFontForContentSizeCategory (#8623) (Yarden Eitan)
Buttons
- π Support non-stateful fonts in theming. (#8650) (Robert Moore)
Cards
- New toggle-button example (#8663) (Galia Kaufman)
Chips
- β Add snapshot tests for setting preferredFont with adjustsFontForContentSizeCategory (#8624) (Yarden Eitan)
π Dialogs
- β Add tests for Dynamic Type. (#8675) (Robert Moore)
- π Remove broken snapshot tests. (#8676) (Robert Moore)
π FeatureHighlight
- Add adjustsFontForContentSizeCategory suppor⦠(#8655) (Yarden Eitan)
- β Add snapshot tests for setting preferredFont with adjustsFontForContentSizeCategory (#8629) (Yarden Eitan)
FlexibleHeader
- π Remove unnecessary caching of CATransaction's disableActions. (#8668) (featherless)
List
- β Add snapshot tests for setting preferredFont with adjustsFontForContentSizeCategory (#8636) (Yarden Eitan)
OverlayWindow
- π Add initWithWindowScene: initializer (#8633) (Bryan Oltman)
PageControl
ShadowLayer
TextFields
- Add density and preferredContainerHeight as private functionality (#8607) (Andrew Overton)
- Add filled and outlined positioning references (#8627) (Andrew Overton)
- π Add filled style object (#8657) (Andrew Overton)
- π Add outlined style object (#8658) (Andrew Overton)
- π Add path drawing utils for style objects (#8628) (Andrew Overton)
- β Add tests for preferredFont APIs. (#8635) (Robert Moore)
- Bring back original textInsets API for clients sub⦠(#8688) (Yarden Eitan)
- π Add support for multi-line in helper and error texβ¦ (#8665) (Yarden Eitan)
-
v93.1.1 Changes
October 28, 2019π This patch hotfix release addresses a bug in NavigationDrawer where the scrim is visible when the drawer's trackingScrollView is scrolled to the end of the content.
π Changes
NavigationDrawer
-
v93.1.0 Changes
October 25, 2019π This minor hotfix release deprecates the
buttonFont
API ofMDCAlertController
.π New deprecations
π The
buttonFont
API onMDCAlertController
is being deprecated and will soon π be removed. Clients should instead usebuttonForAction:
to access and theme each button as desired.Objective-C
for (MDCAlertAction *action in self.actions) { MDCButton *button = [self buttonForAction:action]; // Perform button customization }
API changes
π Dialogs
MDCAlertController
modified property:
buttonFont
inMDCAlertController
π | Type of change: | Deprecation message | |---|---| | From: | `
| | To: |
Please use buttonForAction: to set button properties.` |modified property:
buttonFont
inMDCAlertController
π | Type of change: | Deprecation | |---|---| | From: |
0
| | To: |1
|π Changes
π Dialogs
- π Mark
buttonFont
deprecated. (#8649) (Robert Moore)
- π Mark
-
v93.0.0 Changes
October 23, 2019π This major release deletes MaskedTransition, fixes bugs in ActionSheet, and adds an API to Buttons related to fonts.
π₯ Breaking changes
MaskedTransition has been deleted.
π Changes
ActionSheet
- Fix behavior of
alwaysAlignTitleLeadingEdges
. (#8610) (Robert Moore)
Buttons
- Add API to disable state-based fonts. (#8606) (Robert Moore)
Chips
- Add an "animated" button to the filter example. (#8615) (featherless)
- π Deprecate MDCChipViewTypographyThemer. (#8590) (featherless)
- Fold MDCChipViewTypographyThemer into the Theming extension. (#8591) (featherless)
- Fold more supplemental code into the examples. (#8605) (featherless)
- Fold supplemental code into the examples. (#8587) (featherless)
π Dialogs
- π Remove uncontrolled snapshot tests. (#8619) (Robert Moore)
Tabs
- Fix behavior of
-
v92.5.0 Changes
October 21, 2019π This minor release prepares MDCButton for the deprecation and removal of its π
titleFont:forState:
APIs in a future release.π Changes
Buttons
- Add API to disable state-based fonts. (#8606) (Robert Moore)
-
v92.4.0 Changes
October 16, 2019π 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)
-
v92.3.1 Changes
October 09, 2019π This minor hotfix adds a missing podspec dependency to TextFields+ContainedInputView extension.
Component changes
TextFields
-
v92.3.0 Changes
October 08, 2019π This minor release introduces new color properties to TextFields and removes max size constraints on ActivityIndicator.
π New features
MDCTextInputControllerBase now allows setting the input field's border in the resting state using
borderStrokeColor
:MDCTextField *textField = [[MDCTextField alloc] init]; MDCTextInputControllerOutlined *controller = [[MDCTextInputControllerOutlined alloc] initWithTextInput:textField]; controller.borderStrokeColor = UIColor.redColor;
MDCTextInputControllerFloatingPlaceholder now allows setting the error color of the border of the input field while being in edit mode using
floatingPlaceholderErrorActiveColor
:let textFieldFilled = MDCTextField() let textFieldControllerFilled = MDCTextInputControllerFilled(textInput: textFieldFilled) textFieldControllerFilled.floatingPlaceholderErrorActiveColor = .red
Component changes
π Changes
ActivityIndicator
- π Removes 72dp radius limit on activity indicator (#8534) (Josh Converse)
Tabs
- Add TabBarView API to set content padding (#8529) (Robert Moore)
TextFields
- Add assistive label view (#8539) (Andrew Overton)
- Add some MDCTextControl properties and some small methods I forgot to implement (#8535) (Andrew Overton)
- Adding border stroke color (#8510) (Galia Kaufman)
- Adding floatingPlaceholder Error Active color API to controller (#8526) (Galia Kaufman)
- Bring more of base positioning reference over (#8530) (Andrew Overton)
- Minor cleanup (#8543) (Andrew Overton)
Multi-component changes