Skip to content

Commit

Permalink
[Elevation] Improve protocol naming (#8055)
Browse files Browse the repository at this point in the history
To conform to proper Objective-C naming, I have updated the protocol names to use a gerund form "ing"

https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingBasics.html
  • Loading branch information
yarneo committed Jul 23, 2019
1 parent 61aea17 commit d9d0381
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Expand Up @@ -18,7 +18,7 @@
/**
Provides APIs for @c UIViews to communicate their elevation throughout the view hierarchy.
*/
@protocol MDCElevation
@protocol MDCElevatable

/**
The current elevation of the conforming @c UIView.
Expand Down
Expand Up @@ -18,7 +18,7 @@
/**
Provides APIs for @c UIViews to communicate their elevation throughout the view hierarchy.
*/
@protocol MDCElevationOverride
@protocol MDCElevationOverriding

/**
Used by @c MaterialElevationResponding instead of @c mdc_baseElevation.
Expand Down
4 changes: 2 additions & 2 deletions components/Elevation/src/MaterialElevation.h
Expand Up @@ -12,5 +12,5 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#import "MDCElevation.h"
#import "MDCElevationOverride.h"
#import "MDCElevatable.h"
#import "MDCElevationOverriding.h"

0 comments on commit d9d0381

Please sign in to comment.