Skip to content

Commit

Permalink
[Shadows] Deprecate MDCShadowElevationSwitch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Gordon committed Jan 2, 2018
1 parent 6df22d2 commit 30acb85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@ - (void)sliderValueChanged:(MDCSlider *)slider {
[_paper setElevation:points];
if (points == MDCShadowElevationNone) {
_elevationLabel.text = @"MDCShadowElevationNone";
} else if (points == MDCShadowElevationSwitch) {
_elevationLabel.text = @"MDCShadowElevationSwitch";
} else if (points == MDCShadowElevationRaisedButtonResting) {
_elevationLabel.text = @"MDCShadowElevationRaisedButtonResting";
} else if (points == MDCShadowElevationRefresh) {
Expand Down
3 changes: 2 additions & 1 deletion components/ShadowElevations/src/MDCShadowElevations.h
Original file line number Diff line number Diff line change
Expand Up @@ -96,4 +96,5 @@ FOUNDATION_EXPORT const MDCShadowElevation MDCShadowElevationSnackbar;
FOUNDATION_EXPORT const MDCShadowElevation MDCShadowElevationSubMenu;

/** The shadow elevation of a switch. */
FOUNDATION_EXPORT const MDCShadowElevation MDCShadowElevationSwitch;
FOUNDATION_EXPORT const MDCShadowElevation MDCShadowElevationSwitch
__deprecated_msg("Prefer UISwitch");

0 comments on commit 30acb85

Please sign in to comment.