{"action":"created","comment":{"url":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/comments/44367339","id":44367339,"diff_hunk":"@@ -0,0 +1,54 @@\n+//\n+//  ViewController.swift\n+//  ImagePickerDemo\n+//\n+//  Created by Khoa Pham on 11/8/15.\n+//  Copyright © 2015 Ramon Gilabert Llop. All rights reserved.\n+//\n+\n+import Foundation\n+import UIKit\n+import ImagePicker\n+\n+class ViewController : UICollectionViewController, ImagePickerDelegate, UICollectionViewDelegateFlowLayout {\n+  var images = [UIImage]()\n+\n+\n+  // MARK: UICollectionViewDataSource\n+  override func collectionView(collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {\n+    return images.count\n+  }\n+\n+  override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {\n+\n+    let cell = collectionView.dequeueReusableCellWithReuseIdentifier(\"Cell\", forIndexPath: indexPath) as! Cell\n+    let image = images[indexPath.item]\n+    cell.configure(image: image)\n+\n+    return cell\n+  }\n+\n+  // MAKR: UICollectionViewDelegateFlowLayout","path":"Demo/ImagePickerDemo/ImagePickerDemo/ViewController.swift","position":31,"original_position":31,"commit_id":"4838a09f225997afa5b346a5bc7188fb14836175","original_commit_id":"4838a09f225997afa5b346a5bc7188fb14836175","user":{"login":"onmyway133","id":2284279,"avatar_url":"https://avatars.githubusercontent.com/u/2284279?v=3","gravatar_id":"","url":"https://api.github.com/users/onmyway133","html_url":"https://github.com/onmyway133","followers_url":"https://api.github.com/users/onmyway133/followers","following_url":"https://api.github.com/users/onmyway133/following{/other_user}","gists_url":"https://api.github.com/users/onmyway133/gists{/gist_id}","starred_url":"https://api.github.com/users/onmyway133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onmyway133/subscriptions","organizations_url":"https://api.github.com/users/onmyway133/orgs","repos_url":"https://api.github.com/users/onmyway133/repos","events_url":"https://api.github.com/users/onmyway133/events{/privacy}","received_events_url":"https://api.github.com/users/onmyway133/received_events","type":"User","site_admin":false},"body":"@vadymmarkov Yeah, should be // MARK :smiley: ","created_at":"2015-11-10T03:38:20Z","updated_at":"2015-11-10T03:38:20Z","html_url":"https://github.com/hyperoslo/ImagePicker/pull/52#discussion_r44367339","pull_request_url":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/52","_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/comments/44367339"},"html":{"href":"https://github.com/hyperoslo/ImagePicker/pull/52#discussion_r44367339"},"pull_request":{"href":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/52"}}},"pull_request":{"url":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/52","id":50056307,"html_url":"https://github.com/hyperoslo/ImagePicker/pull/52","diff_url":"https://github.com/hyperoslo/ImagePicker/pull/52.diff","patch_url":"https://github.com/hyperoslo/ImagePicker/pull/52.patch","issue_url":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/52","number":52,"state":"open","locked":false,"title":"Fix delegate and update demo","user":{"login":"onmyway133","id":2284279,"avatar_url":"https://avatars.githubusercontent.com/u/2284279?v=3","gravatar_id":"","url":"https://api.github.com/users/onmyway133","html_url":"https://github.com/onmyway133","followers_url":"https://api.github.com/users/onmyway133/followers","following_url":"https://api.github.com/users/onmyway133/following{/other_user}","gists_url":"https://api.github.com/users/onmyway133/gists{/gist_id}","starred_url":"https://api.github.com/users/onmyway133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onmyway133/subscriptions","organizations_url":"https://api.github.com/users/onmyway133/orgs","repos_url":"https://api.github.com/users/onmyway133/repos","events_url":"https://api.github.com/users/onmyway133/events{/privacy}","received_events_url":"https://api.github.com/users/onmyway133/received_events","type":"User","site_admin":false},"body":"- Following this http://mattgemmell.com/api-design/ by declaring sender in delegate methods, I think it is more convenient for the consumer to know who 's talking\r\n- Make delegate methods optional using Swift 2 protocol extension :rocket:\r\n- Update demo project ","created_at":"2015-11-08T09:12:16Z","updated_at":"2015-11-10T03:38:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fdf9b911709320a85aa5ff9d8eb2944a30b90b8a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/52/commits","review_comments_url":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/52/comments","review_comment_url":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/52/comments","statuses_url":"https://api.github.com/repos/hyperoslo/ImagePicker/statuses/4838a09f225997afa5b346a5bc7188fb14836175","head":{"label":"onmyway133:fix/delegate","ref":"fix/delegate","sha":"4838a09f225997afa5b346a5bc7188fb14836175","user":{"login":"onmyway133","id":2284279,"avatar_url":"https://avatars.githubusercontent.com/u/2284279?v=3","gravatar_id":"","url":"https://api.github.com/users/onmyway133","html_url":"https://github.com/onmyway133","followers_url":"https://api.github.com/users/onmyway133/followers","following_url":"https://api.github.com/users/onmyway133/following{/other_user}","gists_url":"https://api.github.com/users/onmyway133/gists{/gist_id}","starred_url":"https://api.github.com/users/onmyway133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onmyway133/subscriptions","organizations_url":"https://api.github.com/users/onmyway133/orgs","repos_url":"https://api.github.com/users/onmyway133/repos","events_url":"https://api.github.com/users/onmyway133/events{/privacy}","received_events_url":"https://api.github.com/users/onmyway133/received_events","type":"User","site_admin":false},"repo":{"id":45772131,"name":"ImagePicker","full_name":"onmyway133/ImagePicker","owner":{"login":"onmyway133","id":2284279,"avatar_url":"https://avatars.githubusercontent.com/u/2284279?v=3","gravatar_id":"","url":"https://api.github.com/users/onmyway133","html_url":"https://github.com/onmyway133","followers_url":"https://api.github.com/users/onmyway133/followers","following_url":"https://api.github.com/users/onmyway133/following{/other_user}","gists_url":"https://api.github.com/users/onmyway133/gists{/gist_id}","starred_url":"https://api.github.com/users/onmyway133/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/onmyway133/subscriptions","organizations_url":"https://api.github.com/users/onmyway133/orgs","repos_url":"https://api.github.com/users/onmyway133/repos","events_url":"https://api.github.com/users/onmyway133/events{/privacy}","received_events_url":"https://api.github.com/users/onmyway133/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/onmyway133/ImagePicker","description":"Reinventing the way ImagePicker work","fork":true,"url":"https://api.github.com/repos/onmyway133/ImagePicker","forks_url":"https://api.github.com/repos/onmyway133/ImagePicker/forks","keys_url":"https://api.github.com/repos/onmyway133/ImagePicker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/onmyway133/ImagePicker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/onmyway133/ImagePicker/teams","hooks_url":"https://api.github.com/repos/onmyway133/ImagePicker/hooks","issue_events_url":"https://api.github.com/repos/onmyway133/ImagePicker/issues/events{/number}","events_url":"https://api.github.com/repos/onmyway133/ImagePicker/events","assignees_url":"https://api.github.com/repos/onmyway133/ImagePicker/assignees{/user}","branches_url":"https://api.github.com/repos/onmyway133/ImagePicker/branches{/branch}","tags_url":"https://api.github.com/repos/onmyway133/ImagePicker/tags","blobs_url":"https://api.github.com/repos/onmyway133/ImagePicker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/onmyway133/ImagePicker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/onmyway133/ImagePicker/git/refs{/sha}","trees_url":"https://api.github.com/repos/onmyway133/ImagePicker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/onmyway133/ImagePicker/statuses/{sha}","languages_url":"https://api.github.com/repos/onmyway133/ImagePicker/languages","stargazers_url":"https://api.github.com/repos/onmyway133/ImagePicker/stargazers","contributors_url":"https://api.github.com/repos/onmyway133/ImagePicker/contributors","subscribers_url":"https://api.github.com/repos/onmyway133/ImagePicker/subscribers","subscription_url":"https://api.github.com/repos/onmyway133/ImagePicker/subscription","commits_url":"https://api.github.com/repos/onmyway133/ImagePicker/commits{/sha}","git_commits_url":"https://api.github.com/repos/onmyway133/ImagePicker/git/commits{/sha}","comments_url":"https://api.github.com/repos/onmyway133/ImagePicker/comments{/number}","issue_comment_url":"https://api.github.com/repos/onmyway133/ImagePicker/issues/comments{/number}","contents_url":"https://api.github.com/repos/onmyway133/ImagePicker/contents/{+path}","compare_url":"https://api.github.com/repos/onmyway133/ImagePicker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/onmyway133/ImagePicker/merges","archive_url":"https://api.github.com/repos/onmyway133/ImagePicker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/onmyway133/ImagePicker/downloads","issues_url":"https://api.github.com/repos/onmyway133/ImagePicker/issues{/number}","pulls_url":"https://api.github.com/repos/onmyway133/ImagePicker/pulls{/number}","milestones_url":"https://api.github.com/repos/onmyway133/ImagePicker/milestones{/number}","notifications_url":"https://api.github.com/repos/onmyway133/ImagePicker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/onmyway133/ImagePicker/labels{/name}","releases_url":"https://api.github.com/repos/onmyway133/ImagePicker/releases{/id}","created_at":"2015-11-08T08:04:27Z","updated_at":"2015-11-08T08:04:29Z","pushed_at":"2015-11-08T09:09:13Z","git_url":"git://github.com/onmyway133/ImagePicker.git","ssh_url":"git@github.com:onmyway133/ImagePicker.git","clone_url":"https://github.com/onmyway133/ImagePicker.git","svn_url":"https://github.com/onmyway133/ImagePicker","homepage":null,"size":350,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hyperoslo:master","ref":"master","sha":"41932116ab82d80f785d88d9469e3dfd7c201186","user":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"repo":{"id":40171919,"name":"ImagePicker","full_name":"hyperoslo/ImagePicker","owner":{"login":"hyperoslo","id":1340892,"avatar_url":"https://avatars.githubusercontent.com/u/1340892?v=3","gravatar_id":"","url":"https://api.github.com/users/hyperoslo","html_url":"https://github.com/hyperoslo","followers_url":"https://api.github.com/users/hyperoslo/followers","following_url":"https://api.github.com/users/hyperoslo/following{/other_user}","gists_url":"https://api.github.com/users/hyperoslo/gists{/gist_id}","starred_url":"https://api.github.com/users/hyperoslo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hyperoslo/subscriptions","organizations_url":"https://api.github.com/users/hyperoslo/orgs","repos_url":"https://api.github.com/users/hyperoslo/repos","events_url":"https://api.github.com/users/hyperoslo/events{/privacy}","received_events_url":"https://api.github.com/users/hyperoslo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hyperoslo/ImagePicker","description":"Reinventing the way ImagePicker work","fork":false,"url":"https://api.github.com/repos/hyperoslo/ImagePicker","forks_url":"https://api.github.com/repos/hyperoslo/ImagePicker/forks","keys_url":"https://api.github.com/repos/hyperoslo/ImagePicker/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/ImagePicker/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/ImagePicker/teams","hooks_url":"https://api.github.com/repos/hyperoslo/ImagePicker/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/ImagePicker/events","assignees_url":"https://api.github.com/repos/hyperoslo/ImagePicker/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/ImagePicker/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/ImagePicker/tags","blobs_url":"https://api.github.com/repos/hyperoslo/ImagePicker/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/ImagePicker/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/ImagePicker/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/ImagePicker/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/ImagePicker/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/ImagePicker/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/ImagePicker/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/ImagePicker/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/ImagePicker/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/ImagePicker/subscription","commits_url":"https://api.github.com/repos/hyperoslo/ImagePicker/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/ImagePicker/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/ImagePicker/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/ImagePicker/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/ImagePicker/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/ImagePicker/merges","archive_url":"https://api.github.com/repos/hyperoslo/ImagePicker/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/ImagePicker/downloads","issues_url":"https://api.github.com/repos/hyperoslo/ImagePicker/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/ImagePicker/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/ImagePicker/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/ImagePicker/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/ImagePicker/releases{/id}","created_at":"2015-08-04T08:13:33Z","updated_at":"2015-10-21T17:04:33Z","pushed_at":"2015-11-08T09:12:16Z","git_url":"git://github.com/hyperoslo/ImagePicker.git","ssh_url":"git@github.com:hyperoslo/ImagePicker.git","clone_url":"https://github.com/hyperoslo/ImagePicker.git","svn_url":"https://github.com/hyperoslo/ImagePicker","homepage":null,"size":721,"stargazers_count":7,"watchers_count":7,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/52"},"html":{"href":"https://github.com/hyperoslo/ImagePicker/pull/52"},"issue":{"href":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/52"},"comments":{"href":"https://api.github.com/repos/hyperoslo/ImagePicker/issues/52/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/52/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyperoslo/ImagePicker/pulls/52/commits"},"statuses":{"href":"https://api.github.com/repos/hyperoslo/ImagePicker/statuses/4838a09f225997afa5b346a5bc7188fb14836175"}}}}