Skip to content

Commit cf50992

Browse files
author
Jeff Verkoeyen
committed
Merge branch 'release-candidate' into stable
2 parents 60e2a6e + 558eb9e commit cf50992

File tree

174 files changed

+755
-407
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

174 files changed

+755
-407
lines changed

CHANGELOG.md

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,65 @@
1+
# 122.0.0
2+
3+
In this major release, we have made some API-breaking changes and landed some bug fixes and test improvements.
4+
5+
## Breaking changes
6+
7+
### FlexibleHeader
8+
9+
- FlexibleHeader's topSafeAreaGuide is now a UIView.
10+
11+
### ProgressView
12+
13+
- We've removed generics annotations from ProgressView's progressTintColors.
14+
15+
## Component changes
16+
17+
### AppBar
18+
19+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/1437067081c38031d16e80f08437d4667543bce0) (Jeff Verkoeyen)
20+
21+
### BottomNavigation
22+
23+
* [Ensure correct Voiceover behavior in iOS 14.](https://github.com/material-components/material-components-ios/commit/4b4b0f3d7d1753a926ef88723361656252219f28) (Alyssa Weiss)
24+
25+
### Buttons
26+
27+
* [Add inferMinimumAndMaximumSizeWhenMultiline](https://github.com/material-components/material-components-ios/commit/8f2917d52553499260f11c8fd388304838ef9361) (Andrew Overton)
28+
* [Internal change](https://github.com/material-components/material-components-ios/commit/105c4f4ab046ab01bf0677247cfbceee2b51440f) (Andrew Overton)
29+
30+
### Collections
31+
32+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/6171ea2840fb0901a49c0a886c54bf048ff0e8f4) (Jeff Verkoeyen)
33+
34+
### Dialogs
35+
36+
* [Fixed typo in API doc.](https://github.com/material-components/material-components-ios/commit/bcf4760ceba9933de3aa771b1e58cc9e97d7fbed) (Randall Li)
37+
38+
### FlexibleHeader
39+
40+
* [Redefine topSafeAreaGuide as a UIView.](https://github.com/material-components/material-components-ios/commit/22cb5afa87d9fedc134ae64002e48a3c227b2798) (Randall Li)
41+
42+
### ProgressView
43+
44+
* [Add snapshot and unit tests.](https://github.com/material-components/material-components-ios/commit/fdb53be95e6923b7175e5fcd09e850ae0bf69252) (Alyssa Weiss)
45+
* [Remove generics from ProgressView's progressTintColors](https://github.com/material-components/material-components-ios/commit/c7a70ce81893c97656f8aec6c824fc44066dad88) (Andrew Overton)
46+
47+
### Tabs
48+
49+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/6028ffe8792402eb137f9197e0521439bdf999b9) (Cody Weaver)
50+
51+
## Multi-component changes
52+
53+
* [Clean up markdown formatting.](https://github.com/material-components/material-components-ios/commit/d0ac5f2c8396ba7c5cd278b7892330effe7aa093) (Nobody)
54+
* [Expose density on text fields and text areas](https://github.com/material-components/material-components-ios/commit/73e404888d1e98e930e62b68f864b60e264c32f3) (Andrew Overton)
55+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/25c9049d5a4ee13ed9085ca01a92ed3b25867989) (Jeff Verkoeyen)
56+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/39c20e15f82a89c5ea7311f708c8360671efea5a) (Jeff Verkoeyen)
57+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/63988b35da1fa5281b4260abd8a075817b19d155) (Jeff Verkoeyen)
58+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/9f9b452b3aeb357ed46977d3c86d40d29e63200f) (Jeff Verkoeyen)
59+
* [Optimizing imports](https://github.com/material-components/material-components-ios/commit/b3fa42005b31417c687f8a96aa9c4df568182506) (Jeff Verkoeyen)
60+
61+
---
62+
163
# 121.0.1
264

365
In this patch release we made some internal improvements to our imports and refined our deprecation policy.

MaterialComponents.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ load 'scripts/generated/icons.rb'
22

33
Pod::Spec.new do |mdc|
44
mdc.name = "MaterialComponents"
5-
mdc.version = "121.0.1"
5+
mdc.version = "122.0.0"
66
mdc.authors = "The Material Components authors."
77
mdc.summary = "A collection of stand-alone production-ready UI libraries focused on design details."
88
mdc.homepage = "https://github.com/material-components/material-components-ios"

MaterialComponentsEarlGreyTests.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MaterialComponentsEarlGreyTests"
3-
s.version = "121.0.1"
3+
s.version = "122.0.0"
44
s.authors = "The Material Components authors."
55
s.summary = "This spec is an aggregate of all the Material Components EarlGrey tests."
66
s.description = "This spec is made for use in the MDC Catalog."

MaterialComponentsExamples.podspec

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MaterialComponentsExamples"
3-
s.version = "121.0.1"
3+
s.version = "122.0.0"
44
s.authors = "The Material Components authors."
55
s.summary = "This spec is an aggregate of all the Material Components examples."
66
s.description = "This spec is made for use in the MDC Catalog. Used in conjunction with CatalogByConvention we create our Material Catalog."
@@ -13,5 +13,7 @@ Pod::Spec.new do |s|
1313

1414
s.resources = ['components/*/examples/resources/*', 'components/private/*/examples/resources/*', 'components/schemes/*/examples/resources/*']
1515
s.dependency 'MaterialComponents'
16+
s.dependency 'MDFInternationalization'
17+
s.dependency 'MDFTextAccessibility'
1618
s.public_header_files = ['components/*/examples/*.h', 'components/*/examples/supplemental/*.h', 'components/private/*/examples/*.h', 'components/schemes/*/examples/*.h']
1719
end

MaterialComponentsSnapshotTests.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ end
5353

5454
Pod::Spec.new do |s|
5555
s.name = "MaterialComponentsSnapshotTests"
56-
s.version = "121.0.1"
56+
s.version = "122.0.0"
5757
s.authors = "The Material Components authors."
5858
s.summary = "This spec is an aggregate of all the Material Components snapshot tests."
5959
s.homepage = "https://github.com/material-components/material-components-ios"

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
121.0.1
1+
122.0.0

catalog/MDCCatalog/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>121.0.1</string>
18+
<string>122.0.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>121.0.1</string>
22+
<string>122.0.0</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
2525
<key>UIAppFonts</key>

catalog/MDCDragons/Info.plist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
<key>CFBundlePackageType</key>
1616
<string>APPL</string>
1717
<key>CFBundleShortVersionString</key>
18-
<string>121.0.1</string>
18+
<string>122.0.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>121.0.1</string>
20+
<string>122.0.0</string>
2121
<key>LSRequiresIPhoneOS</key>
2222
<true/>
2323
<key>UILaunchStoryboardName</key>

catalog/MaterialCatalog/MDCCatalogTiles.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#import <UIKit/UIKit.h>
1616

1717
#import "MDCCatalogTiles.h"
18-
#import "MaterialThemes.h"
18+
#import "MaterialColorScheme.h"
1919

2020
UIImage* _Nullable MDCDrawImage(CGRect frame,
2121
MDCDrawFunc drawFunc,

catalog/MaterialCatalog/MaterialCatalog.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = "MaterialCatalog"
3-
s.version = "121.0.1"
3+
s.version = "122.0.0"
44
s.summary = "Helper Objective-C classes for the MDC catalog."
55
s.description = "This spec is made for use in the MDC Catalog."
66
s.homepage = "https://github.com/material-components/material-components-ios"

components/AppBar/examples/AppBarImageryExample.m

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
#import "MaterialAppBar+ColorThemer.h"
1818
#import "MaterialAppBar.h"
19+
#import "MaterialFlexibleHeader.h"
20+
#import "MaterialNavigationBar.h"
21+
#import "MaterialColorScheme.h"
1922

2023
@interface AppBarImageryExample : UITableViewController
2124
@property(nonatomic, strong) MDCAppBarViewController *appBarViewController;

components/AppBar/examples/AppBarInterfaceBuilderExampleController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#import "MaterialAppBar+ColorThemer.h"
1818
#import "MaterialAppBar.h"
19+
#import "MaterialFlexibleHeader.h"
20+
#import "MaterialColorScheme.h"
1921

2022
@interface AppBarInterfaceBuilderExample : UIViewController <UIScrollViewDelegate>
2123

components/AppBar/examples/AppBarModalPresentationExample.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#import "MaterialAppBar+ColorThemer.h"
1818
#import "MaterialAppBar.h"
19+
#import "MaterialFlexibleHeader.h"
20+
#import "MaterialColorScheme.h"
1921

2022
@interface AppBarModalPresentationExamplePresented : UITableViewController
2123
@property(strong, nonatomic) MDCAppBarViewController *appBarViewController;

components/AppBar/examples/AppBarPresentedExample.m

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#import <UIKit/UIKit.h>
1616

1717
#import "AppBarSampleViewController.h"
18-
#import "MaterialAppBar.h"
19-
#import "MaterialAppBar+Theming.h"
2018
#import "MaterialButtons.h"
2119
#import "MaterialButtons+Theming.h"
2220
#import "MaterialContainerScheme.h"

components/AppBar/examples/AppBarPresentedHiddenExample.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616

1717
#import "AppBarSampleViewController.h"
1818
#import "MaterialAppBar.h"
19-
#import "MaterialAppBar+Theming.h"
2019
#import "MaterialAvailability.h"
2120
#import "MaterialButtons.h"
2221
#import "MaterialButtons+Theming.h"
22+
#import "MaterialFlexibleHeader.h"
2323
#import "MaterialContainerScheme.h"
2424

2525
// This example demonstrates a view controller being presented with the AppBar initially hidden.

components/AppBar/examples/AppBarSectionHeadersExample.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#import "MaterialAppBar+ColorThemer.h"
1818
#import "MaterialAppBar.h"
19+
#import "MaterialFlexibleHeader.h"
20+
#import "MaterialColorScheme.h"
1921

2022
@interface AppBarSectionHeadersExample : UITableViewController
2123

components/AppBar/examples/AppBarTypicalCollectionViewExample.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@
1515
#import <UIKit/UIKit.h>
1616

1717
#import "MaterialAppBar+ColorThemer.h"
18-
#import "MaterialAppBar+TypographyThemer.h"
1918
#import "MaterialAppBar.h"
19+
#import "MaterialAppBar+TypographyThemer.h"
20+
#import "MaterialFlexibleHeader.h"
21+
#import "MaterialColorScheme.h"
22+
#import "MaterialTypographyScheme.h"
2023

2124
@interface AppBarTypicalCollectionViewExample : UICollectionViewController
2225

components/AppBar/examples/AppBarTypicalUseExample.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@
1515
#import <UIKit/UIKit.h>
1616

1717
#import "MaterialAppBar+ColorThemer.h"
18-
#import "MaterialAppBar+TypographyThemer.h"
1918
#import "MaterialAppBar.h"
19+
#import "MaterialAppBar+TypographyThemer.h"
20+
#import "MaterialFlexibleHeader.h"
21+
#import "MaterialNavigationBar.h"
22+
#import "MaterialColorScheme.h"
23+
#import "MaterialTypographyScheme.h"
2024

2125
@interface AppBarTypicalUseExample : UITableViewController
2226

components/AppBar/examples/AppBarWKWebViewLargeContentExample.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616
#import <WebKit/WebKit.h>
1717

1818
#import "MaterialAppBar+ColorThemer.h"
19-
#import "MaterialAppBar+TypographyThemer.h"
2019
#import "MaterialAppBar.h"
20+
#import "MaterialAppBar+TypographyThemer.h"
21+
#import "MaterialFlexibleHeader.h"
22+
#import "MaterialNavigationBar.h"
23+
#import "MaterialColorScheme.h"
24+
#import "MaterialTypographyScheme.h"
2125

2226
// This demonstrates that a WKWebView with large content as the tracking scroll view is able to
2327
// scroll as expected, even with the useAdditionalSafeAreaInsetsForWebKitScrollViews flag enabled.

components/AppBar/examples/AppBarWKWebViewLargeContentNoBugExample.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616
#import <WebKit/WebKit.h>
1717

1818
#import "MaterialAppBar+ColorThemer.h"
19-
#import "MaterialAppBar+TypographyThemer.h"
2019
#import "MaterialAppBar.h"
20+
#import "MaterialAppBar+TypographyThemer.h"
21+
#import "MaterialFlexibleHeader.h"
22+
#import "MaterialNavigationBar.h"
23+
#import "MaterialColorScheme.h"
24+
#import "MaterialTypographyScheme.h"
2125

2226
// This demonstrates that a WKWebView with large content as the tracking scroll view is able to
2327
// scroll as expected, even without the useAdditionalSafeAreaInsetsForWebKitScrollViews flag

components/AppBar/examples/AppBarWKWebViewSmallContentBugExample.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616
#import <WebKit/WebKit.h>
1717

1818
#import "MaterialAppBar+ColorThemer.h"
19-
#import "MaterialAppBar+TypographyThemer.h"
2019
#import "MaterialAppBar.h"
20+
#import "MaterialAppBar+TypographyThemer.h"
21+
#import "MaterialFlexibleHeader.h"
22+
#import "MaterialNavigationBar.h"
23+
#import "MaterialColorScheme.h"
24+
#import "MaterialTypographyScheme.h"
2125

2226
// This demonstrates a bug when WKWebView's scroll view is the tracking scroll view and the web
2327
// view's content is smaller than the screen. Note that the content is scrollable because the

components/AppBar/examples/AppBarWKWebViewSmallContentExample.m

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,12 @@
1616
#import <WebKit/WebKit.h>
1717

1818
#import "MaterialAppBar+ColorThemer.h"
19-
#import "MaterialAppBar+TypographyThemer.h"
2019
#import "MaterialAppBar.h"
20+
#import "MaterialAppBar+TypographyThemer.h"
21+
#import "MaterialFlexibleHeader.h"
22+
#import "MaterialNavigationBar.h"
23+
#import "MaterialColorScheme.h"
24+
#import "MaterialTypographyScheme.h"
2125

2226
// This demonstrates that a WKWebView with minimal content as the tracking scroll view is not able
2327
// to scroll as expected. This requires enabling useAdditionalSafeAreaInsetsForWebKitScrollViews

components/AppBar/examples/AppBarWrappedExample.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@
1515
#import <UIKit/UIKit.h>
1616

1717
#import "MaterialAppBar+ColorThemer.h"
18-
#import "MaterialAppBar+TypographyThemer.h"
1918
#import "MaterialAppBar.h"
19+
#import "MaterialAppBar+TypographyThemer.h"
20+
#import "MaterialFlexibleHeader.h"
21+
#import "MaterialColorScheme.h"
22+
#import "MaterialTypographyScheme.h"
2023

2124
@interface WrappedDemoViewController : UIViewController
2225
@end

components/AppBar/examples/AppBarWrappingUITableViewControllerExample.m

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@
1515
#import <UIKit/UIKit.h>
1616

1717
#import "MaterialAppBar+ColorThemer.h"
18-
#import "MaterialAppBar+TypographyThemer.h"
1918
#import "MaterialAppBar.h"
19+
#import "MaterialAppBar+TypographyThemer.h"
20+
#import "MaterialFlexibleHeader.h"
21+
#import "MaterialColorScheme.h"
22+
#import "MaterialTypographyScheme.h"
2023

2124
@interface AppBarWrappingUITableViewControllerExample : UIViewController <UITableViewDataSource>
2225

components/AppBar/src/MDCAppBarContainerViewController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616

1717
#import "MDCAppBarViewController.h"
1818
#import "MaterialFlexibleHeader.h"
19+
#import "MaterialNavigationBar.h"
1920

2021
@interface MDCAppBarContainerViewController ()
2122

components/AppBar/src/MDCAppBarNavigationController.m

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616

1717
#import "MDCAppBarNavigationControllerToBeDeprecatedDelegate.h"
1818
#import "MDCAppBarViewController.h"
19+
#import "MaterialFlexibleHeader.h"
20+
#import "MaterialHeaderStackView.h"
1921

2022
#import <objc/runtime.h>
2123

components/AppBar/src/MDCAppBarViewController.m

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,21 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
#import "MDCAppBar.h"
15+
#import "MDCAppBarViewController.h"
1616

1717
#import "MDCAppBarContainerViewController.h"
1818

1919
#import "private/MaterialAppBarStrings.h"
2020
#import "private/MaterialAppBarStrings_table.h"
2121
#import "MDCAppBarViewControllerAccessibilityPerformEscapeDelegate.h"
2222
#import "MaterialFlexibleHeader.h"
23+
#import "MaterialHeaderStackView.h"
24+
#import "MaterialNavigationBar.h"
2325
#import "MaterialShadowElevations.h"
2426
#import "MaterialShadowLayer.h"
25-
#import "MaterialTypography.h"
26-
#import "MaterialApplication.h"
2727
#import "MaterialIcons+ic_arrow_back.h"
2828
#import "MaterialUIMetrics.h"
2929
#import <MDFInternationalization/MDFInternationalization.h>
30-
#import <MDFTextAccessibility/MDFTextAccessibility.h>
3130

3231
static NSString *const kBarStackKey = @"barStack";
3332

components/BottomNavigation/src/private/MDCBottomNavigationItemView.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,10 @@ - (void)commonMDCBottomNavigationItemViewInit {
168168
_button.autoresizingMask = (UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight);
169169
_button.accessibilityLabel = [self accessibilityLabelWithTitle:_title];
170170
_button.accessibilityValue = self.accessibilityValue;
171+
// This needs to be set specifically for VoiceOver to work on iOS 14, see b/175421576
172+
if (@available(iOS 14, *)) {
173+
_button.accessibilityTraits |= UIAccessibilityTraitButton;
174+
}
171175
[self addSubview:_button];
172176
}
173177
}

components/BottomSheet/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ MDCBottomSheetController *bottomSheet = [[MDCBottomSheetController alloc] initWi
124124
// Present the bottom sheet
125125
[self presentViewController:bottomSheet animated:true completion:nil];
126126
```
127+
<!--</div>-->
127128
128129
#### Behavioral customizations
129130
@@ -265,4 +266,4 @@ id<MDCShapeScheming> shapeScheme = [[MDCShapeScheme alloc] init];
265266
[MDCBottomSheetControllerShapeThemer applyShapeScheme:shapeScheme
266267
toBottomSheetController:component];
267268
```
268-
<!--</div>-->
269+
<!--</div>-->

components/BottomSheet/examples/BottomSheetAutolayoutExample.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414

1515
#import <UIKit/UIKit.h>
1616

17-
#import "supplemental/BottomSheetDummyStaticViewController.h"
1817
#import "BottomSheetPresenterViewController.h"
1918
#import "MaterialBottomSheet.h"
2019

0 commit comments

Comments
 (0)