Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Commit 44a33e5

Browse files
committed
Merge branch 'release-candidate' into stable
2 parents 7e2dae8 + ca2153d commit 44a33e5

File tree

46 files changed

+1208
-236
lines changed

Some content is hidden

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

46 files changed

+1208
-236
lines changed

CHANGELOG.md

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,146 @@
1+
# 94.5.0
2+
3+
This minor release introduces new APIs to AppBar, FlexibleHeader and Dialogs. AppBar and
4+
FlexibleHeader adds behavior to mimic the behavior of UINavigationController's
5+
`setNavigationBarHidden:`. Dialogs exposes transition APIs to customize the presentation animations.
6+
We also deprecated some themers for Chips and Buttons.
7+
8+
## New deprecations
9+
10+
### Chips
11+
12+
####MDCChipViewColorThemer
13+
14+
Use Chips+Theming to theme the ChipView instead.
15+
16+
####MDCChipViewShapeThemer
17+
18+
Use Chips+Theming to theme the ChipView instead.
19+
20+
### Buttons
21+
22+
#### MDCFloatingButtonColorThemer
23+
24+
Please use [MDCFloatingButton applySecondaryThemeWithScheme:] instead.
25+
26+
#### MDCContainedButtonColorThemer
27+
28+
Please use [MDCButton applyContainedThemeWithScheme:] instead.
29+
30+
## New features
31+
32+
###AppBar
33+
34+
The new `shouldSetNavigationBarHiddenHideAppBar` flag allows view controllers to control the
35+
visibility of their app bar via the standard UINavigationController setNavigationBarHidden: APIs
36+
37+
```swift
38+
let contentViewController = PresentedViewController()
39+
let navigationController = MDCAppBarNavigationController()
40+
navigationController.shouldSetNavigationBarHiddenHideAppBar = true
41+
navigationController.delegate = self
42+
navigationController.pushViewController(contentViewController, animated: false)
43+
```
44+
45+
###FlexibleHeader
46+
47+
This new shift behavior mode enables the flexible header to mimic the behavior of
48+
UINavigationController's `setNavigationBarHidden:`.
49+
50+
#### Swift
51+
52+
```swift
53+
headerViewController.headerView.shiftBehavior = .hideable
54+
// You can now toggle visibility of the header view using the following invocations:
55+
headerViewController.headerView.shiftHeaderOffScreen(animated: true)
56+
headerViewController.headerView.shiftHeaderOnScreen(animated: true)
57+
override func childViewControllerForStatusBarHidden() -> UIViewController? {
58+
return headerViewController
59+
}
60+
```
61+
62+
#### Objective-C
63+
64+
```objc
65+
headerViewController.headerView.shiftBehavior = MDCFlexibleHeaderShiftBehaviorHideable;
66+
// You can now toggle visibility of the header view using the following invocations:
67+
[headerViewController.headerView shiftHeaderOffScreenAnimated:YES];
68+
[headerViewController.headerView shiftHeaderOnScreenAnimated:YES];
69+
- (UIViewController *)childViewControllerForStatusBarHidden {
70+
return _headerViewController;
71+
}
72+
```
73+
74+
## API changes
75+
76+
### AppBar
77+
78+
*new* property: `navigationBarHidden` in MDCAppBarNavigationController
79+
*new* property: `shouldSetNavigationBarHiddenHideAppBar;
80+
81+
### Chips
82+
83+
*deprecated* class: MDCChipViewColorThemer. Use Chips+Theming instead.
84+
*deprecated* class: MDCChipViewShapeThemer. Use Chips+Theming instead.
85+
86+
### Dialogs
87+
88+
*new* property: `dialogTransform` in MDCDialogPresentationController
89+
90+
*new* property: `opacityAnimationDuration` in MDCDialogTransitionController
91+
*new* property: `scaleAnimationDuration` in MDCDialogTransitionController
92+
*new* property: `dialogInitialScaleFactor` in MDCDialogTransitionController
93+
94+
### Flexible header
95+
96+
*new* enum value: `MDCFlexibleHeaderShiftBehaviorHideable` in MDCFlexibleHeaderShiftBehavior
97+
98+
### Ripple
99+
100+
*new* property: `usesSuperviewShadowLayerAsMask` in MDCRippleView
101+
102+
## Component changes
103+
104+
## Changes
105+
106+
### ActionSheet
107+
108+
* [Refactor edge insets API snapshot tests. (#9035)](https://github.com/material-components/material-components-ios/commit/c87d65330f840a57ede6aaef03a08bddbb118238) (Robert Moore)
109+
110+
### AppBar
111+
112+
* [Add a shouldSetNavigationBarHiddenHideAppBar behavior flag. (#9001)](https://github.com/material-components/material-components-ios/commit/ae532421091d416476fdc39b9dc7ff0be6bd973c) (featherless)
113+
* [Rename test cases to match component conventions. (#9038)](https://github.com/material-components/material-components-ios/commit/d0322ef8c2eb2bbf967b9afda77dd9fb76800663) (featherless)
114+
115+
### Banner
116+
117+
* [Fix top layout constraint in Autolayout example on pre iOS 11 OSes. (#9042)](https://github.com/material-components/material-components-ios/commit/5e98e17c9767c4c0a395c1524618a599af3626bd) (Wenyu Zhang)
118+
119+
### Buttons
120+
121+
* [Deprecating MDCContainedButtonColorThemer (#9051)](https://github.com/material-components/material-components-ios/commit/0ff791396ea53caf817ffe42bfd0509d147b754f) (Galia Kaufman)
122+
* [Deprecating MDCFloatingButtonColorThemer (#9050)](https://github.com/material-components/material-components-ios/commit/75e616f915f0f8c6e5213a0d7514de841d45a136) (Galia Kaufman)
123+
124+
### Chips
125+
126+
* [Mark MDCChipViewColorThemer and MDCChipViewShapeThemer as deprecated (#9040)](https://github.com/material-components/material-components-ios/commit/c360df15878ab0b510dcfc634217650bd11e538b) (Bryan Oltman)
127+
128+
### Dialogs
129+
130+
* [Add configuration options to MDCDialogTransitionController (#9033)](https://github.com/material-components/material-components-ios/commit/0aba80cfdfda07f8d79aa7c115cd0ba55812034d) (Bryan Oltman)
131+
132+
### FlexibleHeader
133+
134+
* [Add MDCFlexibleHeaderShiftBehaviorHideable. (#9026)](https://github.com/material-components/material-components-ios/commit/a24c11f7fc637252c50334fa89fb081a77752137) (featherless)
135+
* [Add test that validates all defaults. (#9036)](https://github.com/material-components/material-components-ios/commit/337af58b066ca1868d1f0dfc44afd9a692265d12) (featherless)
136+
* [Document the default value of shiftBehavior. (#9037)](https://github.com/material-components/material-components-ios/commit/10c2b1205e13fca4e25ec0b6aba0fb83c9465a80) (featherless)
137+
138+
### Ripple
139+
140+
* [Add usesSuperviewShadowLayerAsMask flag. (#8822)](https://github.com/material-components/material-components-ios/commit/9d60c22e29802d2a5e5df6433aa26287e5c75a83) (featherless)
141+
142+
---
143+
1144
# 94.4.0
2145

3146
This minor release introduces new APIs to ActionSheet, BottomSheet and FlexibleHeader. Additionally, it includes new theming extensions for TextControls component.

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 = "94.4.0"
5+
mdc.version = "94.5.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"

MaterialComponentsBeta.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |mdc|
22
mdc.name = "MaterialComponentsBeta"
3-
mdc.version = "94.4.0"
3+
mdc.version = "94.5.0"
44
mdc.authors = "The Material Components authors."
55
mdc.summary = "A collection of stand-alone alpha UI libraries that are not yet guaranteed to be ready for general production use. Use with caution."
66
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 = "94.4.0"
3+
s.version = "94.5.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: 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 = "MaterialComponentsExamples"
3-
s.version = "94.4.0"
3+
s.version = "94.5.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."

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 = "94.4.0"
56+
s.version = "94.5.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-
94.4.0
1+
94.5.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>94.4.0</string>
18+
<string>94.5.0</string>
1919
<key>CFBundleSignature</key>
2020
<string>????</string>
2121
<key>CFBundleVersion</key>
22-
<string>94.4.0</string>
22+
<string>94.5.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>94.4.0</string>
18+
<string>94.5.0</string>
1919
<key>CFBundleVersion</key>
20-
<string>94.4.0</string>
20+
<string>94.5.0</string>
2121
<key>LSRequiresIPhoneOS</key>
2222
<true/>
2323
<key>UILaunchStoryboardName</key>

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 = "94.4.0"
3+
s.version = "94.5.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"

0 commit comments

Comments
 (0)