{"action":"created","comment":{"url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/comments/227256447","pull_request_review_id":167253738,"id":227256447,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzI1NjQ0Nw==","diff_hunk":"@@ -4,6 +4,8 @@ The changelog for **SwifterSwift**. Also see the [releases](https://github.com/S\n # Upcoming release\n \n ### Added\n+- **UIViewController**\n+    - Added `presentPopover(_:,sourcePoint:,size:,delegate:,completion:)` method to quickly present a `UIViewController` as a popover. [#593](https://github.com/SwifterSwift/SwifterSwift/pull/593) by [marcocapano](https://github.com/marcocapano)","path":"CHANGELOG.md","position":5,"original_position":5,"commit_id":"46bcc4ba958a947abaeab2368448c68e4f4cbcab","original_commit_id":"46bcc4ba958a947abaeab2368448c68e4f4cbcab","user":{"login":"guykogus","id":924764,"node_id":"MDQ6VXNlcjkyNDc2NA==","avatar_url":"https://avatars2.githubusercontent.com/u/924764?v=4","gravatar_id":"","url":"https://api.github.com/users/guykogus","html_url":"https://github.com/guykogus","followers_url":"https://api.github.com/users/guykogus/followers","following_url":"https://api.github.com/users/guykogus/following{/other_user}","gists_url":"https://api.github.com/users/guykogus/gists{/gist_id}","starred_url":"https://api.github.com/users/guykogus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guykogus/subscriptions","organizations_url":"https://api.github.com/users/guykogus/orgs","repos_url":"https://api.github.com/users/guykogus/repos","events_url":"https://api.github.com/users/guykogus/events{/privacy}","received_events_url":"https://api.github.com/users/guykogus/received_events","type":"User","site_admin":false},"body":"Please remove the commas\r\n```suggestion\r\n    - Added `presentPopover(_:sourcePoint:size:delegate:completion:)` method to quickly present a `UIViewController` as a popover. [#593](https://github.com/SwifterSwift/SwifterSwift/pull/593) by [marcocapano](https://github.com/marcocapano)\r\n```","created_at":"2018-10-23T07:26:50Z","updated_at":"2018-10-23T07:33:39Z","html_url":"https://github.com/SwifterSwift/SwifterSwift/pull/593#discussion_r227256447","pull_request_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/593","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/comments/227256447"},"html":{"href":"https://github.com/SwifterSwift/SwifterSwift/pull/593#discussion_r227256447"},"pull_request":{"href":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/593"}}},"pull_request":{"url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/593","id":224686563,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0Njg2NTYz","html_url":"https://github.com/SwifterSwift/SwifterSwift/pull/593","diff_url":"https://github.com/SwifterSwift/SwifterSwift/pull/593.diff","patch_url":"https://github.com/SwifterSwift/SwifterSwift/pull/593.patch","issue_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/issues/593","number":593,"state":"open","locked":false,"title":"Adding convenience method to present a popover.","user":{"login":"marcocapano","id":23129028,"node_id":"MDQ6VXNlcjIzMTI5MDI4","avatar_url":"https://avatars3.githubusercontent.com/u/23129028?v=4","gravatar_id":"","url":"https://api.github.com/users/marcocapano","html_url":"https://github.com/marcocapano","followers_url":"https://api.github.com/users/marcocapano/followers","following_url":"https://api.github.com/users/marcocapano/following{/other_user}","gists_url":"https://api.github.com/users/marcocapano/gists{/gist_id}","starred_url":"https://api.github.com/users/marcocapano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcocapano/subscriptions","organizations_url":"https://api.github.com/users/marcocapano/orgs","repos_url":"https://api.github.com/users/marcocapano/repos","events_url":"https://api.github.com/users/marcocapano/events{/privacy}","received_events_url":"https://api.github.com/users/marcocapano/received_events","type":"User","site_admin":false},"body":"This PR adds a methods to present a view controller as a popover, which usually requires multiple lines of code.\r\nI'm not sure the test is exhaustive enough, so I'm happy to receive suggestions.\r\n## Checklist\r\n- [x] I checked the [**Contributing Guidelines**](https://github.com/SwifterSwift/SwifterSwift/blob/master/CONTRIBUTING.md) before creating this request.\r\n- [x] New extensions are written in Swift 4.\r\n- [x] I have added tests for new extensions, and they passed.\r\n- [x] All extensions have a **clear** comments explaining their functionality, all parameters and return type in English.\r\n- [x] All extensions are declared as **public**.\r\n- [x] I have added a [changelog](https://github.com/SwifterSwift/SwifterSwift/blob/master/CHANGELOG_GUIDELINES.md) entry describing my changes.","created_at":"2018-10-22T13:47:17Z","updated_at":"2018-10-23T07:33:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":"eaaff420bc9d3e1b69da5611aa5088520222296a","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":417816956,"node_id":"MDU6TGFiZWw0MTc4MTY5NTY=","url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/labels/help%20wanted","name":"help wanted","color":"128A0C","default":true},{"id":769013541,"node_id":"MDU6TGFiZWw3NjkwMTM1NDE=","url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/labels/new%20extension","name":"new extension","color":"d93f0b","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/593/commits","review_comments_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/593/comments","review_comment_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/issues/593/comments","statuses_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/statuses/46bcc4ba958a947abaeab2368448c68e4f4cbcab","head":{"label":"SwifterSwift:popover","ref":"popover","sha":"46bcc4ba958a947abaeab2368448c68e4f4cbcab","user":{"login":"SwifterSwift","id":25029478,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDI5NDc4","avatar_url":"https://avatars2.githubusercontent.com/u/25029478?v=4","gravatar_id":"","url":"https://api.github.com/users/SwifterSwift","html_url":"https://github.com/SwifterSwift","followers_url":"https://api.github.com/users/SwifterSwift/followers","following_url":"https://api.github.com/users/SwifterSwift/following{/other_user}","gists_url":"https://api.github.com/users/SwifterSwift/gists{/gist_id}","starred_url":"https://api.github.com/users/SwifterSwift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwifterSwift/subscriptions","organizations_url":"https://api.github.com/users/SwifterSwift/orgs","repos_url":"https://api.github.com/users/SwifterSwift/repos","events_url":"https://api.github.com/users/SwifterSwift/events{/privacy}","received_events_url":"https://api.github.com/users/SwifterSwift/received_events","type":"Organization","site_admin":false},"repo":{"id":64705781,"node_id":"MDEwOlJlcG9zaXRvcnk2NDcwNTc4MQ==","name":"SwifterSwift","full_name":"SwifterSwift/SwifterSwift","private":false,"owner":{"login":"SwifterSwift","id":25029478,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDI5NDc4","avatar_url":"https://avatars2.githubusercontent.com/u/25029478?v=4","gravatar_id":"","url":"https://api.github.com/users/SwifterSwift","html_url":"https://github.com/SwifterSwift","followers_url":"https://api.github.com/users/SwifterSwift/followers","following_url":"https://api.github.com/users/SwifterSwift/following{/other_user}","gists_url":"https://api.github.com/users/SwifterSwift/gists{/gist_id}","starred_url":"https://api.github.com/users/SwifterSwift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwifterSwift/subscriptions","organizations_url":"https://api.github.com/users/SwifterSwift/orgs","repos_url":"https://api.github.com/users/SwifterSwift/repos","events_url":"https://api.github.com/users/SwifterSwift/events{/privacy}","received_events_url":"https://api.github.com/users/SwifterSwift/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SwifterSwift/SwifterSwift","description":"A handy collection of more than 500 native Swift extensions to boost your productivity.","fork":false,"url":"https://api.github.com/repos/SwifterSwift/SwifterSwift","forks_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/forks","keys_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/teams","hooks_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/hooks","issue_events_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/issues/events{/number}","events_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/events","assignees_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/assignees{/user}","branches_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/branches{/branch}","tags_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/tags","blobs_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/git/refs{/sha}","trees_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/statuses/{sha}","languages_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/languages","stargazers_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/stargazers","contributors_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/contributors","subscribers_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/subscribers","subscription_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/subscription","commits_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/commits{/sha}","git_commits_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/git/commits{/sha}","comments_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/comments{/number}","issue_comment_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/issues/comments{/number}","contents_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/contents/{+path}","compare_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/merges","archive_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/downloads","issues_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/issues{/number}","pulls_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls{/number}","milestones_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/milestones{/number}","notifications_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/labels{/name}","releases_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/releases{/id}","deployments_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/deployments","created_at":"2016-08-01T22:25:24Z","updated_at":"2018-10-23T03:37:33Z","pushed_at":"2018-10-23T07:02:46Z","git_url":"git://github.com/SwifterSwift/SwifterSwift.git","ssh_url":"git@github.com:SwifterSwift/SwifterSwift.git","clone_url":"https://github.com/SwifterSwift/SwifterSwift.git","svn_url":"https://github.com/SwifterSwift/SwifterSwift","homepage":"https://swifterswift.com","size":14531,"stargazers_count":6298,"watchers_count":6298,"language":"Swift","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":693,"mirror_url":null,"archived":false,"open_issues_count":25,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":693,"open_issues":25,"watchers":6298,"default_branch":"master"}},"base":{"label":"SwifterSwift:master","ref":"master","sha":"7888fb7bf2671ed679dade12995cbf12df3ce235","user":{"login":"SwifterSwift","id":25029478,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDI5NDc4","avatar_url":"https://avatars2.githubusercontent.com/u/25029478?v=4","gravatar_id":"","url":"https://api.github.com/users/SwifterSwift","html_url":"https://github.com/SwifterSwift","followers_url":"https://api.github.com/users/SwifterSwift/followers","following_url":"https://api.github.com/users/SwifterSwift/following{/other_user}","gists_url":"https://api.github.com/users/SwifterSwift/gists{/gist_id}","starred_url":"https://api.github.com/users/SwifterSwift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwifterSwift/subscriptions","organizations_url":"https://api.github.com/users/SwifterSwift/orgs","repos_url":"https://api.github.com/users/SwifterSwift/repos","events_url":"https://api.github.com/users/SwifterSwift/events{/privacy}","received_events_url":"https://api.github.com/users/SwifterSwift/received_events","type":"Organization","site_admin":false},"repo":{"id":64705781,"node_id":"MDEwOlJlcG9zaXRvcnk2NDcwNTc4MQ==","name":"SwifterSwift","full_name":"SwifterSwift/SwifterSwift","private":false,"owner":{"login":"SwifterSwift","id":25029478,"node_id":"MDEyOk9yZ2FuaXphdGlvbjI1MDI5NDc4","avatar_url":"https://avatars2.githubusercontent.com/u/25029478?v=4","gravatar_id":"","url":"https://api.github.com/users/SwifterSwift","html_url":"https://github.com/SwifterSwift","followers_url":"https://api.github.com/users/SwifterSwift/followers","following_url":"https://api.github.com/users/SwifterSwift/following{/other_user}","gists_url":"https://api.github.com/users/SwifterSwift/gists{/gist_id}","starred_url":"https://api.github.com/users/SwifterSwift/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SwifterSwift/subscriptions","organizations_url":"https://api.github.com/users/SwifterSwift/orgs","repos_url":"https://api.github.com/users/SwifterSwift/repos","events_url":"https://api.github.com/users/SwifterSwift/events{/privacy}","received_events_url":"https://api.github.com/users/SwifterSwift/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/SwifterSwift/SwifterSwift","description":"A handy collection of more than 500 native Swift extensions to boost your productivity.","fork":false,"url":"https://api.github.com/repos/SwifterSwift/SwifterSwift","forks_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/forks","keys_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/teams","hooks_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/hooks","issue_events_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/issues/events{/number}","events_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/events","assignees_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/assignees{/user}","branches_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/branches{/branch}","tags_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/tags","blobs_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/git/refs{/sha}","trees_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/statuses/{sha}","languages_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/languages","stargazers_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/stargazers","contributors_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/contributors","subscribers_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/subscribers","subscription_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/subscription","commits_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/commits{/sha}","git_commits_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/git/commits{/sha}","comments_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/comments{/number}","issue_comment_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/issues/comments{/number}","contents_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/contents/{+path}","compare_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/merges","archive_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/downloads","issues_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/issues{/number}","pulls_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls{/number}","milestones_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/milestones{/number}","notifications_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/labels{/name}","releases_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/releases{/id}","deployments_url":"https://api.github.com/repos/SwifterSwift/SwifterSwift/deployments","created_at":"2016-08-01T22:25:24Z","updated_at":"2018-10-23T03:37:33Z","pushed_at":"2018-10-23T07:02:46Z","git_url":"git://github.com/SwifterSwift/SwifterSwift.git","ssh_url":"git@github.com:SwifterSwift/SwifterSwift.git","clone_url":"https://github.com/SwifterSwift/SwifterSwift.git","svn_url":"https://github.com/SwifterSwift/SwifterSwift","homepage":"https://swifterswift.com","size":14531,"stargazers_count":6298,"watchers_count":6298,"language":"Swift","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":693,"mirror_url":null,"archived":false,"open_issues_count":25,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":693,"open_issues":25,"watchers":6298,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/593"},"html":{"href":"https://github.com/SwifterSwift/SwifterSwift/pull/593"},"issue":{"href":"https://api.github.com/repos/SwifterSwift/SwifterSwift/issues/593"},"comments":{"href":"https://api.github.com/repos/SwifterSwift/SwifterSwift/issues/593/comments"},"review_comments":{"href":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/593/comments"},"review_comment":{"href":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SwifterSwift/SwifterSwift/pulls/593/commits"},"statuses":{"href":"https://api.github.com/repos/SwifterSwift/SwifterSwift/statuses/46bcc4ba958a947abaeab2368448c68e4f4cbcab"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"guykogus"}}