{"action":"created","comment":{"url":"https://api.github.com/repos/material-components/material-components-ios/pulls/comments/165364644","pull_request_review_id":93284290,"id":165364644,"diff_hunk":"@@ -0,0 +1,158 @@\n+/*\n+ Copyright 2018-present the Material Components for iOS authors. All Rights Reserved.\n+\n+ Licensed under the Apache License, Version 2.0 (the \"License\");\n+ you may not use this file except in compliance with the License.\n+ You may obtain a copy of the License at\n+\n+ http://www.apache.org/licenses/LICENSE-2.0\n+\n+ Unless required by applicable law or agreed to in writing, software\n+ distributed under the License is distributed on an \"AS IS\" BASIS,\n+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ See the License for the specific language governing permissions and\n+ limitations under the License.\n+ */\n+\n+#import <UIKit/UIKit.h>\n+#import \"MDCCard.h\"\n+\n+typedef NS_ENUM(NSInteger, MDCCardCellState) {\n+  /** The visual state when the cell is in its normal state. */\n+  MDCCardCellStateNormal = 0,\n+\n+  /** The visual state when the cell is in its highlighted state. */\n+  MDCCardCellStateHighlighted,\n+  \n+  /** The visual state when the cell has been selected. */\n+  MDCCardCellStateSelected\n+};\n+\n+@interface MDCCardCollectionCell : UICollectionViewCell\n+\n+/**\n+ When selecting is set to YES, a tap on a cell will trigger a visual change between selected\n+ and unselected. When it is set to NO, a tap will trigger a normal tap (rather than trigger\n+ different visual selection states on the card).\n+ Default is set to NO.\n+ */\n+@property(nonatomic, assign, getter=isSelecting) BOOL selecting;\n+\n+/**\n+ The corner radius for the card\n+ Default is set to 4.\n+ */\n+@property(nonatomic, assign) CGFloat cornerRadius UI_APPEARANCE_SELECTOR;\n+\n+/**\n+ The inkView for the card that is initiated on tap\n+ */\n+@property(nonatomic, readonly, strong, nonnull) MDCInkView *inkView;\n+\n+/**\n+ Sets the shadow elevation for an MDCCardViewState state\n+\n+ @param shadowElevation The shadow elevation\n+ @param state MDCCardCellState the card state\n+ */\n+- (void)setShadowElevation:(MDCShadowElevation)shadowElevation forState:(MDCCardCellState)state\n+    UI_APPEARANCE_SELECTOR;\n+\n+/**\n+ Returns the shadow elevation for an MDCCardViewState state\n+\n+ If no elevation has been set for a state, the value for MDCCardCellStateNormal will be returned.\n+ Default value for MDCCardCellStateNormal is 1\n+ Default value for MDCCardCellStateHighlighted is 8\n+ Default value for MDCCardCellStateSelected is 8\n+\n+ @param state MDCCardCellStateNormal the card state\n+ @return The shadow elevation for the requested state.\n+ */\n+- (MDCShadowElevation)shadowElevationForState:(MDCCardCellState)state;\n+\n+/**\n+ Sets the border width for an MDCCardViewState state\n+\n+ @param borderWidth The border width\n+ @param state MDCCardCellState the card state\n+ */\n+- (void)setBorderWidth:(CGFloat)borderWidth forState:(MDCCardCellState)state\n+    UI_APPEARANCE_SELECTOR;\n+\n+/**\n+ Returns the border width for an MDCCardCellState state\n+\n+ If no border width has been set for a state, the value for MDCCardCellStateNormal will be returned.\n+ Default value for MDCCardCellStateNormal is 0\n+ Default value for MDCCardCellStateHighlighted is 0\n+ Default value for MDCCardCellStateSelected is 0\n+\n+ @param state MDCCardCellState the card state\n+ @return The border width for the requested state.\n+ */\n+- (CGFloat)borderWidthForState:(MDCCardCellState)state;\n+\n+/**\n+ Sets the border color for an MDCCardCellStateNormal state\n+\n+ @param borderColor The border color\n+ @param state MDCCardCellState the card state\n+ */\n+- (void)setBorderColor:(nullable UIColor *)borderColor forState:(MDCCardCellState)state\n+    UI_APPEARANCE_SELECTOR;\n+\n+/**\n+ Returns the border color for an MDCCardCellStateNormal state\n+\n+ If no border color has been set for a state, the value for MDCCardCellStateNormal will be returned.\n+ Default value for MDCCardCellStateNormal is clearColor\n+ Default value for MDCCardCellStateHighlighted is clearColor\n+ Default value for MDCCardCellStateSelected is clearColor\n+\n+ @param state MDCCardCellState the card state\n+ @return The border color for the requested state.\n+ */\n+- (nullable UIColor *)borderColorForState:(MDCCardCellState)state;","path":"components/Cards/src/MDCCardCollectionCell.h","position":116,"original_position":116,"commit_id":"5d570d4f167d5120302164908e0016235e793fe3","original_commit_id":"5d570d4f167d5120302164908e0016235e793fe3","user":{"login":"romoore","id":1753199,"avatar_url":"https://avatars3.githubusercontent.com/u/1753199?v=4","gravatar_id":"","url":"https://api.github.com/users/romoore","html_url":"https://github.com/romoore","followers_url":"https://api.github.com/users/romoore/followers","following_url":"https://api.github.com/users/romoore/following{/other_user}","gists_url":"https://api.github.com/users/romoore/gists{/gist_id}","starred_url":"https://api.github.com/users/romoore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romoore/subscriptions","organizations_url":"https://api.github.com/users/romoore/orgs","repos_url":"https://api.github.com/users/romoore/repos","events_url":"https://api.github.com/users/romoore/events{/privacy}","received_events_url":"https://api.github.com/users/romoore/received_events","type":"User","site_admin":false},"body":"Same comment about `nil` instead of `clearColor` as I posted for card view.","created_at":"2018-02-01T14:07:42Z","updated_at":"2018-02-01T14:15:54Z","html_url":"https://github.com/material-components/material-components-ios/pull/2886#discussion_r165364644","pull_request_url":"https://api.github.com/repos/material-components/material-components-ios/pulls/2886","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/material-components/material-components-ios/pulls/comments/165364644"},"html":{"href":"https://github.com/material-components/material-components-ios/pull/2886#discussion_r165364644"},"pull_request":{"href":"https://api.github.com/repos/material-components/material-components-ios/pulls/2886"}}},"pull_request":{"url":"https://api.github.com/repos/material-components/material-components-ios/pulls/2886","id":166398559,"html_url":"https://github.com/material-components/material-components-ios/pull/2886","diff_url":"https://github.com/material-components/material-components-ios/pull/2886.diff","patch_url":"https://github.com/material-components/material-components-ios/pull/2886.patch","issue_url":"https://api.github.com/repos/material-components/material-components-ios/issues/2886","number":2886,"state":"open","locked":false,"title":"[Cards] New API Header files","user":{"login":"yarneo","id":4066863,"avatar_url":"https://avatars2.githubusercontent.com/u/4066863?v=4","gravatar_id":"","url":"https://api.github.com/users/yarneo","html_url":"https://github.com/yarneo","followers_url":"https://api.github.com/users/yarneo/followers","following_url":"https://api.github.com/users/yarneo/following{/other_user}","gists_url":"https://api.github.com/users/yarneo/gists{/gist_id}","starred_url":"https://api.github.com/users/yarneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarneo/subscriptions","organizations_url":"https://api.github.com/users/yarneo/orgs","repos_url":"https://api.github.com/users/yarneo/repos","events_url":"https://api.github.com/users/yarneo/events{/privacy}","received_events_url":"https://api.github.com/users/yarneo/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-01-31T22:51:13Z","updated_at":"2018-02-01T14:15:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9463580d69045db943647165be051f3de1adbaaf","assignee":null,"assignees":[],"requested_reviewers":[{"login":"ianegordon","id":1121006,"avatar_url":"https://avatars1.githubusercontent.com/u/1121006?v=4","gravatar_id":"","url":"https://api.github.com/users/ianegordon","html_url":"https://github.com/ianegordon","followers_url":"https://api.github.com/users/ianegordon/followers","following_url":"https://api.github.com/users/ianegordon/following{/other_user}","gists_url":"https://api.github.com/users/ianegordon/gists{/gist_id}","starred_url":"https://api.github.com/users/ianegordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ianegordon/subscriptions","organizations_url":"https://api.github.com/users/ianegordon/orgs","repos_url":"https://api.github.com/users/ianegordon/repos","events_url":"https://api.github.com/users/ianegordon/events{/privacy}","received_events_url":"https://api.github.com/users/ianegordon/received_events","type":"User","site_admin":false}],"requested_teams":[],"milestone":null,"commits_url":"https://api.github.com/repos/material-components/material-components-ios/pulls/2886/commits","review_comments_url":"https://api.github.com/repos/material-components/material-components-ios/pulls/2886/comments","review_comment_url":"https://api.github.com/repos/material-components/material-components-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/material-components/material-components-ios/issues/2886/comments","statuses_url":"https://api.github.com/repos/material-components/material-components-ios/statuses/5d570d4f167d5120302164908e0016235e793fe3","head":{"label":"yarneo:cards-headers","ref":"cards-headers","sha":"5d570d4f167d5120302164908e0016235e793fe3","user":{"login":"yarneo","id":4066863,"avatar_url":"https://avatars2.githubusercontent.com/u/4066863?v=4","gravatar_id":"","url":"https://api.github.com/users/yarneo","html_url":"https://github.com/yarneo","followers_url":"https://api.github.com/users/yarneo/followers","following_url":"https://api.github.com/users/yarneo/following{/other_user}","gists_url":"https://api.github.com/users/yarneo/gists{/gist_id}","starred_url":"https://api.github.com/users/yarneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarneo/subscriptions","organizations_url":"https://api.github.com/users/yarneo/orgs","repos_url":"https://api.github.com/users/yarneo/repos","events_url":"https://api.github.com/users/yarneo/events{/privacy}","received_events_url":"https://api.github.com/users/yarneo/received_events","type":"User","site_admin":false},"repo":{"id":110606484,"name":"material-components-ios","full_name":"yarneo/material-components-ios","owner":{"login":"yarneo","id":4066863,"avatar_url":"https://avatars2.githubusercontent.com/u/4066863?v=4","gravatar_id":"","url":"https://api.github.com/users/yarneo","html_url":"https://github.com/yarneo","followers_url":"https://api.github.com/users/yarneo/followers","following_url":"https://api.github.com/users/yarneo/following{/other_user}","gists_url":"https://api.github.com/users/yarneo/gists{/gist_id}","starred_url":"https://api.github.com/users/yarneo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarneo/subscriptions","organizations_url":"https://api.github.com/users/yarneo/orgs","repos_url":"https://api.github.com/users/yarneo/repos","events_url":"https://api.github.com/users/yarneo/events{/privacy}","received_events_url":"https://api.github.com/users/yarneo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yarneo/material-components-ios","description":"Modular and customizable Material Design UI components for iOS","fork":true,"url":"https://api.github.com/repos/yarneo/material-components-ios","forks_url":"https://api.github.com/repos/yarneo/material-components-ios/forks","keys_url":"https://api.github.com/repos/yarneo/material-components-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yarneo/material-components-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yarneo/material-components-ios/teams","hooks_url":"https://api.github.com/repos/yarneo/material-components-ios/hooks","issue_events_url":"https://api.github.com/repos/yarneo/material-components-ios/issues/events{/number}","events_url":"https://api.github.com/repos/yarneo/material-components-ios/events","assignees_url":"https://api.github.com/repos/yarneo/material-components-ios/assignees{/user}","branches_url":"https://api.github.com/repos/yarneo/material-components-ios/branches{/branch}","tags_url":"https://api.github.com/repos/yarneo/material-components-ios/tags","blobs_url":"https://api.github.com/repos/yarneo/material-components-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yarneo/material-components-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yarneo/material-components-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/yarneo/material-components-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yarneo/material-components-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/yarneo/material-components-ios/languages","stargazers_url":"https://api.github.com/repos/yarneo/material-components-ios/stargazers","contributors_url":"https://api.github.com/repos/yarneo/material-components-ios/contributors","subscribers_url":"https://api.github.com/repos/yarneo/material-components-ios/subscribers","subscription_url":"https://api.github.com/repos/yarneo/material-components-ios/subscription","commits_url":"https://api.github.com/repos/yarneo/material-components-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/yarneo/material-components-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/yarneo/material-components-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/yarneo/material-components-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/yarneo/material-components-ios/contents/{+path}","compare_url":"https://api.github.com/repos/yarneo/material-components-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yarneo/material-components-ios/merges","archive_url":"https://api.github.com/repos/yarneo/material-components-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yarneo/material-components-ios/downloads","issues_url":"https://api.github.com/repos/yarneo/material-components-ios/issues{/number}","pulls_url":"https://api.github.com/repos/yarneo/material-components-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/yarneo/material-components-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/yarneo/material-components-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yarneo/material-components-ios/labels{/name}","releases_url":"https://api.github.com/repos/yarneo/material-components-ios/releases{/id}","deployments_url":"https://api.github.com/repos/yarneo/material-components-ios/deployments","created_at":"2017-11-13T21:50:04Z","updated_at":"2017-11-13T21:50:08Z","pushed_at":"2018-01-31T23:03:20Z","git_url":"git://github.com/yarneo/material-components-ios.git","ssh_url":"git@github.com:yarneo/material-components-ios.git","clone_url":"https://github.com/yarneo/material-components-ios.git","svn_url":"https://github.com/yarneo/material-components-ios","homepage":"","size":94778,"stargazers_count":0,"watchers_count":0,"language":"Objective-C","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"material-components:feature-cards","ref":"feature-cards","sha":"61445a677a014e94a922faee33cdbebcffa2e607","user":{"login":"material-components","id":19478152,"avatar_url":"https://avatars3.githubusercontent.com/u/19478152?v=4","gravatar_id":"","url":"https://api.github.com/users/material-components","html_url":"https://github.com/material-components","followers_url":"https://api.github.com/users/material-components/followers","following_url":"https://api.github.com/users/material-components/following{/other_user}","gists_url":"https://api.github.com/users/material-components/gists{/gist_id}","starred_url":"https://api.github.com/users/material-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/material-components/subscriptions","organizations_url":"https://api.github.com/users/material-components/orgs","repos_url":"https://api.github.com/users/material-components/repos","events_url":"https://api.github.com/users/material-components/events{/privacy}","received_events_url":"https://api.github.com/users/material-components/received_events","type":"Organization","site_admin":false},"repo":{"id":43820219,"name":"material-components-ios","full_name":"material-components/material-components-ios","owner":{"login":"material-components","id":19478152,"avatar_url":"https://avatars3.githubusercontent.com/u/19478152?v=4","gravatar_id":"","url":"https://api.github.com/users/material-components","html_url":"https://github.com/material-components","followers_url":"https://api.github.com/users/material-components/followers","following_url":"https://api.github.com/users/material-components/following{/other_user}","gists_url":"https://api.github.com/users/material-components/gists{/gist_id}","starred_url":"https://api.github.com/users/material-components/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/material-components/subscriptions","organizations_url":"https://api.github.com/users/material-components/orgs","repos_url":"https://api.github.com/users/material-components/repos","events_url":"https://api.github.com/users/material-components/events{/privacy}","received_events_url":"https://api.github.com/users/material-components/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/material-components/material-components-ios","description":"Modular and customizable Material Design UI components for iOS","fork":false,"url":"https://api.github.com/repos/material-components/material-components-ios","forks_url":"https://api.github.com/repos/material-components/material-components-ios/forks","keys_url":"https://api.github.com/repos/material-components/material-components-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/material-components/material-components-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/material-components/material-components-ios/teams","hooks_url":"https://api.github.com/repos/material-components/material-components-ios/hooks","issue_events_url":"https://api.github.com/repos/material-components/material-components-ios/issues/events{/number}","events_url":"https://api.github.com/repos/material-components/material-components-ios/events","assignees_url":"https://api.github.com/repos/material-components/material-components-ios/assignees{/user}","branches_url":"https://api.github.com/repos/material-components/material-components-ios/branches{/branch}","tags_url":"https://api.github.com/repos/material-components/material-components-ios/tags","blobs_url":"https://api.github.com/repos/material-components/material-components-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/material-components/material-components-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/material-components/material-components-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/material-components/material-components-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/material-components/material-components-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/material-components/material-components-ios/languages","stargazers_url":"https://api.github.com/repos/material-components/material-components-ios/stargazers","contributors_url":"https://api.github.com/repos/material-components/material-components-ios/contributors","subscribers_url":"https://api.github.com/repos/material-components/material-components-ios/subscribers","subscription_url":"https://api.github.com/repos/material-components/material-components-ios/subscription","commits_url":"https://api.github.com/repos/material-components/material-components-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/material-components/material-components-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/material-components/material-components-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/material-components/material-components-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/material-components/material-components-ios/contents/{+path}","compare_url":"https://api.github.com/repos/material-components/material-components-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/material-components/material-components-ios/merges","archive_url":"https://api.github.com/repos/material-components/material-components-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/material-components/material-components-ios/downloads","issues_url":"https://api.github.com/repos/material-components/material-components-ios/issues{/number}","pulls_url":"https://api.github.com/repos/material-components/material-components-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/material-components/material-components-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/material-components/material-components-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/material-components/material-components-ios/labels{/name}","releases_url":"https://api.github.com/repos/material-components/material-components-ios/releases{/id}","deployments_url":"https://api.github.com/repos/material-components/material-components-ios/deployments","created_at":"2015-10-07T14:12:39Z","updated_at":"2018-01-31T22:01:30Z","pushed_at":"2018-01-31T23:03:21Z","git_url":"git://github.com/material-components/material-components-ios.git","ssh_url":"git@github.com:material-components/material-components-ios.git","clone_url":"https://github.com/material-components/material-components-ios.git","svn_url":"https://github.com/material-components/material-components-ios","homepage":"","size":94747,"stargazers_count":1935,"watchers_count":1935,"language":"Objective-C","has_issues":true,"has_projects":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":265,"mirror_url":null,"archived":false,"open_issues_count":470,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":265,"open_issues":470,"watchers":1935,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/material-components/material-components-ios/pulls/2886"},"html":{"href":"https://github.com/material-components/material-components-ios/pull/2886"},"issue":{"href":"https://api.github.com/repos/material-components/material-components-ios/issues/2886"},"comments":{"href":"https://api.github.com/repos/material-components/material-components-ios/issues/2886/comments"},"review_comments":{"href":"https://api.github.com/repos/material-components/material-components-ios/pulls/2886/comments"},"review_comment":{"href":"https://api.github.com/repos/material-components/material-components-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/material-components/material-components-ios/pulls/2886/commits"},"statuses":{"href":"https://api.github.com/repos/material-components/material-components-ios/statuses/5d570d4f167d5120302164908e0016235e793fe3"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"romoore"}}