Material Components v79.2.0 Release Notes
-
๐ This minor release introduces a bug fix and new API to Flexible Header, Beta Theming Extensions for โ App Bar and Text Fields, and additional component snapshot tests.
๐ New features
MDCFlexibleHeaderView has a new API that can be called from UIScrollViewDelegates to notify it of โก๏ธ updated adjusted content inset values.
func scrollViewDidChangeAdjustedContentInset(_ scrollView: UIScrollView) { if #available(iOS 11.0, *) { self.appBarViewController.headerView.trackingScrollDidChangeAdjustedContentInset(scrollView) } }
- (void)scrollViewDidChangeAdjustedContentInset:(UIScrollView *)scrollView { if (@available(iOS 11.0, *)) { [self.appBarViewController.headerView trackingScrollViewDidChangeAdjustedContentInset:scrollView]; } }
API changes
AppBar+MaterialTheming
๐ New extension.
FlexibleHeader
MDCFlexibleHeaderView
๐ new method:
-trackingScrollViewDidChangeAdjustedContentInset:
inMDCFlexibleHeaderView
MDCFlexibleHeaderView()
๐ new category:
MDCFlexibleHeaderView()
โ removed category:
MDCFlexibleHeaderView()
modified property:
contentView
inMDCFlexibleHeaderView()
Type of change: parent.usr From: c:objc(ext)[email protected]@14987
To: c:objc(ext)[email protected]@15448
TextFields+Theming
๐ New extension.
๐ Changes
ActionSheet
- โ Add basic Snapshot tests. (#6917) (Robert Moore)
AppBar
- Add theming extension for MDCAppBarViewController (#6903) (Robert Moore)
BottomNavigation
- โก๏ธ Fix image updates in ItemView (#6847) (Robert Moore)
- More snapshots for item icons. (#6855) (Robert Moore)
- โช Restore examples titles. (#6869) (Robert Moore)
- โ Snapshot test for selection bug (#6843) (Robert Moore)
- โ Split alignment snapshot tests. (#6856) (Robert Moore)
- โ Use new test icons. (#6898) (Robert Moore)
FlexibleHeader
- โก๏ธ update contentInset when tracked view's adjustedContentInset is changed. (#6868) (Wenyu Zhang)
- ๐จ refactor internal helper methods (#6862) (Wenyu Zhang)
Ink
- โ Add basic snapshot tests. (#6920) (Robert Moore)
ShadowElevations
- โ Add basic snapshot tests. (#6829) (Robert Moore)
ShadowLayer
- โ Add basic Snapshot tests. (#6921) (Robert Moore)
TextFields
private/Snapshot
- โ Fix test image scale and clipping. (#6899) (Robert Moore)
- ๐ Adding 4 more test image styles. (#6897) (Robert Moore)
Multi-component changes
- โ Include snapshot tests in examples in Podspec (#6895) (Wenyu Zhang)
- Removing nil-coalescing operators per issue #6827 (#6859) (Joe Aguilar)
- โช Revert "[Typography] Dynamic Type 2.0 (#6733)" (#6848) (ianegordon)