Skip to content

Commit

Permalink
[Ripple] Annotate symbols as to be deprecated
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 457767173
  • Loading branch information
codeman7 authored and material-automation committed Jun 28, 2022
1 parent a169a26 commit 62e4f25
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 1 deletion.
6 changes: 6 additions & 0 deletions components/Ripple/src/MDCRippleTouchController.h
Expand Up @@ -14,6 +14,10 @@

#import <UIKit/UIKit.h>

API_DEPRECATED_BEGIN("Follow go/material-ios-touch-response, touch response should use system "
"highlighting behavior.",
ios(12, API_TO_BE_DEPRECATED))

// TODO(b/151929968): Delete import of delegate headers when client code has been migrated to no
// longer import delegates as transitive dependencies.
#import "MDCRippleTouchControllerDelegate.h"
Expand Down Expand Up @@ -111,3 +115,5 @@
- (void)addRippleToView:(nonnull UIView *)view;

@end

API_DEPRECATED_END
6 changes: 6 additions & 0 deletions components/Ripple/src/MDCRippleTouchControllerDelegate.h
Expand Up @@ -14,6 +14,10 @@

#import <UIKit/UIKit.h>

API_DEPRECATED_BEGIN("Follow go/material-ios-touch-response, touch response should use system "
"highlighting behavior.",
ios(12, API_TO_BE_DEPRECATED))

@class MDCRippleTouchController;
@class MDCRippleView;

Expand Down Expand Up @@ -85,3 +89,5 @@
rippleViewAtTouchLocation:(CGPoint)location;

@end

API_DEPRECATED_END
6 changes: 6 additions & 0 deletions components/Ripple/src/MDCRippleView.h
Expand Up @@ -14,6 +14,10 @@

#import <UIKit/UIKit.h>

API_DEPRECATED_BEGIN("Follow go/material-ios-touch-response, touch response should use system "
"highlighting behavior.",
ios(12, API_TO_BE_DEPRECATED))

// TODO(b/151929968): Delete import of delegate headers when client code has been migrated to no
// longer import delegates as transitive dependencies.
#import "MDCRippleViewDelegate.h"
Expand Down Expand Up @@ -168,3 +172,5 @@ typedef NS_ENUM(NSInteger, MDCRippleStyle) {
+ (nonnull MDCRippleView *)injectedRippleViewForView:(nonnull UIView *)view;

@end

API_DEPRECATED_END
6 changes: 6 additions & 0 deletions components/Ripple/src/MDCRippleViewDelegate.h
Expand Up @@ -14,6 +14,10 @@

#import <UIKit/UIKit.h>

API_DEPRECATED_BEGIN("Follow go/material-ios-touch-response, touch response should use system "
"highlighting behavior.",
ios(12, API_TO_BE_DEPRECATED))

@class MDCRippleView;

/**
Expand Down Expand Up @@ -53,3 +57,5 @@
- (void)rippleTouchUpAnimationDidEnd:(nonnull MDCRippleView *)rippleView;

@end

API_DEPRECATED_END
9 changes: 8 additions & 1 deletion components/Ripple/src/MDCStatefulRippleView.h
Expand Up @@ -14,6 +14,10 @@

#import "MDCRippleView.h"

API_DEPRECATED_BEGIN("Follow go/material-ios-touch-response, touch response should use system "
"highlighting behavior.",
ios(12, API_TO_BE_DEPRECATED))

/**
Provides the current state of the ripple. The ripple is either in its normal state, or in the
selected state where the ripple remains spread on the view.
Expand Down Expand Up @@ -45,7 +49,8 @@ typedef NS_OPTIONS(NSInteger, MDCRippleState) {
should be used when one wants to leverage the Material state system and should ideally be
configured/set alongside the UIKit APIs (i.e. UIControlState or cell's setSelected/setHighlighted).
*/
__attribute__((objc_subclassing_restricted)) @interface MDCStatefulRippleView : MDCRippleView
__attribute__((objc_subclassing_restricted))
@interface MDCStatefulRippleView : MDCRippleView

/**
This BOOL is set to YES if the ripple is currently selected, or NO otherwise.
Expand Down Expand Up @@ -163,3 +168,5 @@ __attribute__((objc_subclassing_restricted)) @interface MDCStatefulRippleView :
- (void)touchesCancelled:(nullable NSSet<UITouch *> *)touches withEvent:(nullable UIEvent *)event;

@end

API_DEPRECATED_END

0 comments on commit 62e4f25

Please sign in to comment.