{"action":"created","comment":{"url":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/comments/59625917","id":59625917,"diff_hunk":"@@ -387,7 +387,10 @@ extension LightboxController: FooterViewDelegate {\n \n   public func footerView(footerView: FooterView, didExpand expanded: Bool) {\n     footerView.frame.origin.y = screenBounds.height - footerView.frame.height\n-    overlayView.alpha = expanded ? 1.0 : 0.0\n-    headerView.deleteButton.alpha = expanded ? 0.0 : 1.0\n+    \n+    UIView.animateWithDuration(0.25, animations: {\n+      self.overlayView.alpha = expanded ? 1.0 : 0.0\n+      self.headerView.deleteButton.alpha = expanded ? 0.0 : 1.0\n+    }, completion: nil)","path":"Source/LightboxController.swift","position":10,"original_position":10,"commit_id":"4cef861fe923be1bdefa0979fc0612609e069ed2","original_commit_id":"4cef861fe923be1bdefa0979fc0612609e069ed2","user":{"login":"zenangst","id":57446,"avatar_url":"https://avatars.githubusercontent.com/u/57446?v=3","gravatar_id":"","url":"https://api.github.com/users/zenangst","html_url":"https://github.com/zenangst","followers_url":"https://api.github.com/users/zenangst/followers","following_url":"https://api.github.com/users/zenangst/following{/other_user}","gists_url":"https://api.github.com/users/zenangst/gists{/gist_id}","starred_url":"https://api.github.com/users/zenangst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenangst/subscriptions","organizations_url":"https://api.github.com/users/zenangst/orgs","repos_url":"https://api.github.com/users/zenangst/repos","events_url":"https://api.github.com/users/zenangst/events{/privacy}","received_events_url":"https://api.github.com/users/zenangst/received_events","type":"User","site_admin":false},"body":"Could we do?;\r\n\r\n```swift\r\nUIView.animateWithDuration(0.25) {\r\n  self.overlayView.alpha = expanded ? 1.0 : 0.0\r\n  self.headerView.deleteButton.alpha = expanded ? 0.0 : 1.0\r\n}\r\n```","created_at":"2016-04-13T21:08:53Z","updated_at":"2016-04-13T21:08:53Z","html_url":"https://github.com/hyperoslo/Lightbox/pull/74#discussion_r59625917","pull_request_url":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/74","_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/comments/59625917"},"html":{"href":"https://github.com/hyperoslo/Lightbox/pull/74#discussion_r59625917"},"pull_request":{"href":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/74"}}},"pull_request":{"url":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/74","id":66333009,"html_url":"https://github.com/hyperoslo/Lightbox/pull/74","diff_url":"https://github.com/hyperoslo/Lightbox/pull/74.diff","patch_url":"https://github.com/hyperoslo/Lightbox/pull/74.patch","issue_url":"https://api.github.com/repos/hyperoslo/Lightbox/issues/74","number":74,"state":"open","locked":false,"title":"Add animation when changing alpha","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":"So that user is not surprised 😄 ","created_at":"2016-04-13T14:42:10Z","updated_at":"2016-04-13T21:08:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d40164d549d2247957ae290f7ab0cd77adc35b3","assignee":{"login":"vadymmarkov","id":10529867,"avatar_url":"https://avatars.githubusercontent.com/u/10529867?v=3","gravatar_id":"","url":"https://api.github.com/users/vadymmarkov","html_url":"https://github.com/vadymmarkov","followers_url":"https://api.github.com/users/vadymmarkov/followers","following_url":"https://api.github.com/users/vadymmarkov/following{/other_user}","gists_url":"https://api.github.com/users/vadymmarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/vadymmarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadymmarkov/subscriptions","organizations_url":"https://api.github.com/users/vadymmarkov/orgs","repos_url":"https://api.github.com/users/vadymmarkov/repos","events_url":"https://api.github.com/users/vadymmarkov/events{/privacy}","received_events_url":"https://api.github.com/users/vadymmarkov/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/74/commits","review_comments_url":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/74/comments","review_comment_url":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyperoslo/Lightbox/issues/74/comments","statuses_url":"https://api.github.com/repos/hyperoslo/Lightbox/statuses/4cef861fe923be1bdefa0979fc0612609e069ed2","head":{"label":"hyperoslo:improve/expand_animation","ref":"improve/expand_animation","sha":"4cef861fe923be1bdefa0979fc0612609e069ed2","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":38307869,"name":"Lightbox","full_name":"hyperoslo/Lightbox","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/Lightbox","description":"","fork":false,"url":"https://api.github.com/repos/hyperoslo/Lightbox","forks_url":"https://api.github.com/repos/hyperoslo/Lightbox/forks","keys_url":"https://api.github.com/repos/hyperoslo/Lightbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/Lightbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/Lightbox/teams","hooks_url":"https://api.github.com/repos/hyperoslo/Lightbox/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/Lightbox/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/Lightbox/events","assignees_url":"https://api.github.com/repos/hyperoslo/Lightbox/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/Lightbox/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/Lightbox/tags","blobs_url":"https://api.github.com/repos/hyperoslo/Lightbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/Lightbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/Lightbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/Lightbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/Lightbox/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/Lightbox/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/Lightbox/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/Lightbox/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/Lightbox/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/Lightbox/subscription","commits_url":"https://api.github.com/repos/hyperoslo/Lightbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/Lightbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/Lightbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/Lightbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/Lightbox/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/Lightbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/Lightbox/merges","archive_url":"https://api.github.com/repos/hyperoslo/Lightbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/Lightbox/downloads","issues_url":"https://api.github.com/repos/hyperoslo/Lightbox/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/Lightbox/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/Lightbox/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/Lightbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/Lightbox/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/Lightbox/releases{/id}","deployments_url":"https://api.github.com/repos/hyperoslo/Lightbox/deployments","created_at":"2015-06-30T12:28:01Z","updated_at":"2016-04-13T14:07:56Z","pushed_at":"2016-04-13T14:42:10Z","git_url":"git://github.com/hyperoslo/Lightbox.git","ssh_url":"git@github.com:hyperoslo/Lightbox.git","clone_url":"https://github.com/hyperoslo/Lightbox.git","svn_url":"https://github.com/hyperoslo/Lightbox","homepage":null,"size":5334,"stargazers_count":10,"watchers_count":10,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":10,"default_branch":"master"}},"base":{"label":"hyperoslo:master","ref":"master","sha":"981fe7a2220be738249c7ac7273b49f82eca0e70","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":38307869,"name":"Lightbox","full_name":"hyperoslo/Lightbox","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/Lightbox","description":"","fork":false,"url":"https://api.github.com/repos/hyperoslo/Lightbox","forks_url":"https://api.github.com/repos/hyperoslo/Lightbox/forks","keys_url":"https://api.github.com/repos/hyperoslo/Lightbox/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/Lightbox/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/Lightbox/teams","hooks_url":"https://api.github.com/repos/hyperoslo/Lightbox/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/Lightbox/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/Lightbox/events","assignees_url":"https://api.github.com/repos/hyperoslo/Lightbox/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/Lightbox/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/Lightbox/tags","blobs_url":"https://api.github.com/repos/hyperoslo/Lightbox/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/Lightbox/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/Lightbox/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/Lightbox/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/Lightbox/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/Lightbox/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/Lightbox/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/Lightbox/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/Lightbox/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/Lightbox/subscription","commits_url":"https://api.github.com/repos/hyperoslo/Lightbox/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/Lightbox/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/Lightbox/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/Lightbox/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/Lightbox/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/Lightbox/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/Lightbox/merges","archive_url":"https://api.github.com/repos/hyperoslo/Lightbox/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/Lightbox/downloads","issues_url":"https://api.github.com/repos/hyperoslo/Lightbox/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/Lightbox/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/Lightbox/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/Lightbox/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/Lightbox/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/Lightbox/releases{/id}","deployments_url":"https://api.github.com/repos/hyperoslo/Lightbox/deployments","created_at":"2015-06-30T12:28:01Z","updated_at":"2016-04-13T14:07:56Z","pushed_at":"2016-04-13T14:42:10Z","git_url":"git://github.com/hyperoslo/Lightbox.git","ssh_url":"git@github.com:hyperoslo/Lightbox.git","clone_url":"https://github.com/hyperoslo/Lightbox.git","svn_url":"https://github.com/hyperoslo/Lightbox","homepage":null,"size":5334,"stargazers_count":10,"watchers_count":10,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":3,"forks":4,"open_issues":3,"watchers":10,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/74"},"html":{"href":"https://github.com/hyperoslo/Lightbox/pull/74"},"issue":{"href":"https://api.github.com/repos/hyperoslo/Lightbox/issues/74"},"comments":{"href":"https://api.github.com/repos/hyperoslo/Lightbox/issues/74/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/74/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyperoslo/Lightbox/pulls/74/commits"},"statuses":{"href":"https://api.github.com/repos/hyperoslo/Lightbox/statuses/4cef861fe923be1bdefa0979fc0612609e069ed2"}}}}