Skip to content

Commit 7a22245

Browse files
Janette Jamesmaterial-automation
Janette James
authored andcommitted
Mark as to be deprecated
PiperOrigin-RevId: 468758723
1 parent 40aa55b commit 7a22245

File tree

4 files changed

+11
-2
lines changed

4 files changed

+11
-2
lines changed

components/Cards/src/MDCCard.h

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
@protocol MDCShapeGenerating;
2323

24+
API_DEPRECATED_BEGIN("Use a branded UIView instead.", ios(12, API_TO_BE_DEPRECATED))
25+
2426
// TODO(b/238930139): Remove usage of this deprecated API.
2527
#pragma clang diagnostic push
2628
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@@ -176,3 +178,5 @@
176178
"Shape generators are no longer supported.", ios(12, 12));
177179

178180
@end
181+
182+
API_DEPRECATED_END

components/Cards/src/MDCCardCollectionCell.h

+4
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@
2020

2121
@protocol MDCShapeGenerating;
2222

23+
API_DEPRECATED_BEGIN("Use a branded UICollectionViewCell instead.", ios(12, API_TO_BE_DEPRECATED))
24+
2325
/**
2426
Through the lifecycle of the cell, the cell can go through one of the 3 states,
2527
normal, highlighted, and selected. The cell starts in its default state, normal.
@@ -340,3 +342,5 @@ typedef NS_ENUM(NSInteger, MDCCardCellVerticalImageAlignment) {
340342
"Shape generators are no longer supported.", ios(12, 12));
341343

342344
@end
345+
346+
API_DEPRECATED_END

components/Cards/src/UICollectionViewController+MDCCardReordering.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
for more information. It will make sure that the underlying longPressGestureRecognizer
2424
doesn't cancel the ink tap visual causing the ink to disappear once the reorder begins.
2525
*/
26-
- (void)mdc_setupCardReordering;
26+
- (void)mdc_setupCardReordering API_DEPRECATED(
27+
"Use a branded UIView or UICollectionViewCell instead.", ios(12, API_TO_BE_DEPRECATED));
2728

2829
@end

contributing/code-conventions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ tests, and demonstration apps.
4242
### Style
4343

4444
Material Components for iOS follows [Google's Objective-C style
45-
guide](https://github.com/google/styleguide/blob/gh-pages/objcguide.md) for Objective-C code. Note that the
45+
guide](https://google.github.io/styleguide/objcguide.xml) for Objective-C code. Note that the
4646
Objective-C style guide uses the [Google C++ style
4747
guide](https://google.github.io/styleguide/cppguide.html) as its "superclass", meaning that rules
4848
from the C++ style guide are in effect unless the Objective-C style guide indicates otherwise.

0 commit comments

Comments
 (0)