{"action":"created","comment":{"url":"https://api.github.com/repos/material-components/material-components-ios/pulls/comments/218476091","pull_request_review_id":156423083,"id":218476091,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxODQ3NjA5MQ==","diff_hunk":"@@ -95,25 +121,74 @@ - (void)viewDidLoad {\n            forControlEvents:UIControlEventTouchUpInside];\n \n   [self.view addSubview:_presentButton];\n+\n+  _presentMDCButton = [[MDCFlatButton alloc] initWithFrame:CGRectZero];\n+  [_presentMDCButton setTitle:@\"Present Material Dialog\" forState:UIControlStateNormal];\n+  [_presentMDCButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];\n+  [_presentMDCButton addTarget:self\n+                        action:@selector(didTapPresentMDCDialog:)\n+              forControlEvents:UIControlEventTouchUpInside];\n+  [self.view addSubview:_presentMDCButton];\n }\n \n - (void)viewWillLayoutSubviews {\n   [super viewWillLayoutSubviews];\n   [_presentButton sizeToFit];\n   _presentButton.center = CGPointMake(CGRectGetMidX(self.view.bounds),\n                                       CGRectGetMidY(self.view.bounds));\n+  [_presentMDCButton sizeToFit];\n+  _presentMDCButton.center = CGPointMake(CGRectGetMidX(self.view.bounds),\n+                                         _presentButton.center.y +\n+                                         _presentButton.frame.size.height + 8.0);\n+}\n+\n+- (MDCAlertController *)createMDCAlertController {\n+\n+  NSString *title = @\"Using Material alert controller?\";\n+  NSString *message = @\"Be careful with modal alerts as they can be annoying if over-used.\";\n+\n+  MDCAlertController *mdcAlertController = [MDCAlertController alertControllerWithTitle:title message:message];\n+  [mdcAlertController mdc_setAdjustsFontForContentSizeCategory:true];\n+\n+  MDCAlertAction *agreeAction = [MDCAlertAction actionWithTitle:@\"OK\" handler:^(MDCAlertAction * _Nonnull action) {\n+    NSLog(@\"OK pressed\");\n+  }];\n+  [mdcAlertController addAction:agreeAction];\n+\n+  return mdcAlertController;\n }\n \n - (IBAction)didTapPresent:(id)sender {\n-  UIViewController *viewController =\n+  DialogsRoundedCornerSimpleController *viewController =\n       [[DialogsRoundedCornerSimpleController alloc] initWithNibName:nil bundle:nil];\n \n   viewController.modalPresentationStyle = UIModalPresentationCustom;\n   viewController.transitioningDelegate = self.transitionController;\n \n+  // sets the dialog's corner radius\n+  viewController.cornerRadius = kCornerRadius;\n+\n+  // ensure shadow/tracking layer matches the dialog's corner radius\n+  MDCDialogPresentationController *controller = viewController.mdc_dialogPresentationController;\n+  controller.dialogCornerRadius = kCornerRadius;\n+\n   [self presentViewController:viewController animated:YES completion:NULL];\n }\n \n+- (void)didTapPresentMDCDialog:(id)sender {\n+","path":"components/Dialogs/examples/DialogsRoundedCornerViewController.m","position":137,"original_position":137,"commit_id":"748dfb62a4ef7154e24a901aec1e3afccb21694d","original_commit_id":"748dfb62a4ef7154e24a901aec1e3afccb21694d","user":{"login":"material-automation","id":19738546,"node_id":"MDQ6VXNlcjE5NzM4NTQ2","avatar_url":"https://avatars2.githubusercontent.com/u/19738546?v=4","gravatar_id":"","url":"https://api.github.com/users/material-automation","html_url":"https://github.com/material-automation","followers_url":"https://api.github.com/users/material-automation/followers","following_url":"https://api.github.com/users/material-automation/following{/other_user}","gists_url":"https://api.github.com/users/material-automation/gists{/gist_id}","starred_url":"https://api.github.com/users/material-automation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/material-automation/subscriptions","organizations_url":"https://api.github.com/users/material-automation/orgs","repos_url":"https://api.github.com/users/material-automation/repos","events_url":"https://api.github.com/users/material-automation/events{/privacy}","received_events_url":"https://api.github.com/users/material-automation/received_events","type":"User","site_admin":false},"body":"clang-format suggested the following change:\n\n\n```\n-\n```\n\n<!-- identifier: clang-format -->\n<!-- File: components/Dialogs/examples/DialogsRoundedCornerViewController.m -->","created_at":"2018-09-18T15:17:08Z","updated_at":"2018-09-18T15:17:08Z","html_url":"https://github.com/material-components/material-components-ios/pull/5158#discussion_r218476091","pull_request_url":"https://api.github.com/repos/material-components/material-components-ios/pulls/5158","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/material-components/material-components-ios/pulls/comments/218476091"},"html":{"href":"https://github.com/material-components/material-components-ios/pull/5158#discussion_r218476091"},"pull_request":{"href":"https://api.github.com/repos/material-components/material-components-ios/pulls/5158"}}},"pull_request":{"url":"https://api.github.com/repos/material-components/material-components-ios/pulls/5158","id":216345587,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE2MzQ1NTg3","html_url":"https://github.com/material-components/material-components-ios/pull/5158","diff_url":"https://github.com/material-components/material-components-ios/pull/5158.diff","patch_url":"https://github.com/material-components/material-components-ios/pull/5158.patch","issue_url":"https://api.github.com/repos/material-components/material-components-ios/issues/5158","number":5158,"state":"open","locked":false,"title":"[Dialogs] Add/update examples for dialog themer","user":{"login":"galiak11","id":2329102,"node_id":"MDQ6VXNlcjIzMjkxMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/2329102?v=4","gravatar_id":"","url":"https://api.github.com/users/galiak11","html_url":"https://github.com/galiak11","followers_url":"https://api.github.com/users/galiak11/followers","following_url":"https://api.github.com/users/galiak11/following{/other_user}","gists_url":"https://api.github.com/users/galiak11/gists{/gist_id}","starred_url":"https://api.github.com/users/galiak11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galiak11/subscriptions","organizations_url":"https://api.github.com/users/galiak11/orgs","repos_url":"https://api.github.com/users/galiak11/repos","events_url":"https://api.github.com/users/galiak11/events{/privacy}","received_events_url":"https://api.github.com/users/galiak11/received_events","type":"User","site_admin":false},"body":"Adding and updating existing examples that use the [new dialog themer (#5102)](https://github.com/material-components/material-components-ios/pull/5102).\r\n\r\nIssue: b/113257098\r\n\r\nBEFORE:\r\n![dialog - before](https://user-images.githubusercontent.com/2329102/45421250-7a4d5380-b65a-11e8-80f4-d677dc5309c1.png)\r\n\r\nAFTER (note the corner radius and themed color & font):\r\n![dialog - after](https://user-images.githubusercontent.com/2329102/45421251-7a4d5380-b65a-11e8-8049-a7c3c9b9249b.png)\r\n\r\n","created_at":"2018-09-18T15:14:02Z","updated_at":"2018-09-18T15:17:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfae40114d450e0b829c60f316ed3a7fb1f891d5","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":392757587,"node_id":"MDU6TGFiZWwzOTI3NTc1ODc=","url":"https://api.github.com/repos/material-components/material-components-ios/labels/[Dialogs]","name":"[Dialogs]","color":"eeeeee","default":false},{"id":273191333,"node_id":"MDU6TGFiZWwyNzMxOTEzMzM=","url":"https://api.github.com/repos/material-components/material-components-ios/labels/cla:%20yes","name":"cla: yes","color":"c2e0c6","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/material-components/material-components-ios/pulls/5158/commits","review_comments_url":"https://api.github.com/repos/material-components/material-components-ios/pulls/5158/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/5158/comments","statuses_url":"https://api.github.com/repos/material-components/material-components-ios/statuses/748dfb62a4ef7154e24a901aec1e3afccb21694d","head":{"label":"galiak11:gk_dialogthemerexamples","ref":"gk_dialogthemerexamples","sha":"748dfb62a4ef7154e24a901aec1e3afccb21694d","user":{"login":"galiak11","id":2329102,"node_id":"MDQ6VXNlcjIzMjkxMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/2329102?v=4","gravatar_id":"","url":"https://api.github.com/users/galiak11","html_url":"https://github.com/galiak11","followers_url":"https://api.github.com/users/galiak11/followers","following_url":"https://api.github.com/users/galiak11/following{/other_user}","gists_url":"https://api.github.com/users/galiak11/gists{/gist_id}","starred_url":"https://api.github.com/users/galiak11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galiak11/subscriptions","organizations_url":"https://api.github.com/users/galiak11/orgs","repos_url":"https://api.github.com/users/galiak11/repos","events_url":"https://api.github.com/users/galiak11/events{/privacy}","received_events_url":"https://api.github.com/users/galiak11/received_events","type":"User","site_admin":false},"repo":{"id":137527649,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc1Mjc2NDk=","name":"material-components-ios","full_name":"galiak11/material-components-ios","private":false,"owner":{"login":"galiak11","id":2329102,"node_id":"MDQ6VXNlcjIzMjkxMDI=","avatar_url":"https://avatars0.githubusercontent.com/u/2329102?v=4","gravatar_id":"","url":"https://api.github.com/users/galiak11","html_url":"https://github.com/galiak11","followers_url":"https://api.github.com/users/galiak11/followers","following_url":"https://api.github.com/users/galiak11/following{/other_user}","gists_url":"https://api.github.com/users/galiak11/gists{/gist_id}","starred_url":"https://api.github.com/users/galiak11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/galiak11/subscriptions","organizations_url":"https://api.github.com/users/galiak11/orgs","repos_url":"https://api.github.com/users/galiak11/repos","events_url":"https://api.github.com/users/galiak11/events{/privacy}","received_events_url":"https://api.github.com/users/galiak11/received_events","type":"User","site_admin":false},"html_url":"https://github.com/galiak11/material-components-ios","description":"Modular and customizable Material Design UI components for iOS","fork":true,"url":"https://api.github.com/repos/galiak11/material-components-ios","forks_url":"https://api.github.com/repos/galiak11/material-components-ios/forks","keys_url":"https://api.github.com/repos/galiak11/material-components-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/galiak11/material-components-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/galiak11/material-components-ios/teams","hooks_url":"https://api.github.com/repos/galiak11/material-components-ios/hooks","issue_events_url":"https://api.github.com/repos/galiak11/material-components-ios/issues/events{/number}","events_url":"https://api.github.com/repos/galiak11/material-components-ios/events","assignees_url":"https://api.github.com/repos/galiak11/material-components-ios/assignees{/user}","branches_url":"https://api.github.com/repos/galiak11/material-components-ios/branches{/branch}","tags_url":"https://api.github.com/repos/galiak11/material-components-ios/tags","blobs_url":"https://api.github.com/repos/galiak11/material-components-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/galiak11/material-components-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/galiak11/material-components-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/galiak11/material-components-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/galiak11/material-components-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/galiak11/material-components-ios/languages","stargazers_url":"https://api.github.com/repos/galiak11/material-components-ios/stargazers","contributors_url":"https://api.github.com/repos/galiak11/material-components-ios/contributors","subscribers_url":"https://api.github.com/repos/galiak11/material-components-ios/subscribers","subscription_url":"https://api.github.com/repos/galiak11/material-components-ios/subscription","commits_url":"https://api.github.com/repos/galiak11/material-components-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/galiak11/material-components-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/galiak11/material-components-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/galiak11/material-components-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/galiak11/material-components-ios/contents/{+path}","compare_url":"https://api.github.com/repos/galiak11/material-components-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/galiak11/material-components-ios/merges","archive_url":"https://api.github.com/repos/galiak11/material-components-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/galiak11/material-components-ios/downloads","issues_url":"https://api.github.com/repos/galiak11/material-components-ios/issues{/number}","pulls_url":"https://api.github.com/repos/galiak11/material-components-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/galiak11/material-components-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/galiak11/material-components-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/galiak11/material-components-ios/labels{/name}","releases_url":"https://api.github.com/repos/galiak11/material-components-ios/releases{/id}","deployments_url":"https://api.github.com/repos/galiak11/material-components-ios/deployments","created_at":"2018-06-15T20:09:08Z","updated_at":"2018-09-18T14:53:19Z","pushed_at":"2018-09-18T15:12:05Z","git_url":"git://github.com/galiak11/material-components-ios.git","ssh_url":"git@github.com:galiak11/material-components-ios.git","clone_url":"https://github.com/galiak11/material-components-ios.git","svn_url":"https://github.com/galiak11/material-components-ios","homepage":"","size":121014,"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","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"material-components:develop","ref":"develop","sha":"553fb019e7399876a4c34bc417194ef6721af47a","user":{"login":"material-components","id":19478152,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NDc4MTUy","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,"node_id":"MDEwOlJlcG9zaXRvcnk0MzgyMDIxOQ==","name":"material-components-ios","full_name":"material-components/material-components-ios","private":false,"owner":{"login":"material-components","id":19478152,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE5NDc4MTUy","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},"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-09-18T15:01:00Z","pushed_at":"2018-09-18T15:14:03Z","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":121070,"stargazers_count":2768,"watchers_count":2768,"language":"Objective-C","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":412,"mirror_url":null,"archived":false,"open_issues_count":728,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":412,"open_issues":728,"watchers":2768,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/material-components/material-components-ios/pulls/5158"},"html":{"href":"https://github.com/material-components/material-components-ios/pull/5158"},"issue":{"href":"https://api.github.com/repos/material-components/material-components-ios/issues/5158"},"comments":{"href":"https://api.github.com/repos/material-components/material-components-ios/issues/5158/comments"},"review_comments":{"href":"https://api.github.com/repos/material-components/material-components-ios/pulls/5158/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/5158/commits"},"statuses":{"href":"https://api.github.com/repos/material-components/material-components-ios/statuses/748dfb62a4ef7154e24a901aec1e3afccb21694d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"material-automation"}}