{"action":"created","comment":{"url":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/comments/265799775","pull_request_review_id":214805352,"id":265799775,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI2NTc5OTc3NQ==","diff_hunk":"@@ -0,0 +1,126 @@\n+//\n+//  SearchSegementBarCell.swift\n+//  Freetime\n+//\n+//  Created by Ehud Adler on 3/12/19.\n+//  Copyright © 2019 Ryan Nystrom. All rights reserved.\n+//\n+\n+import UIKit\n+import SnapKit\n+\n+final class SearchSegmentBarCell: UICollectionViewCell, SearchableCell, UISearchBarDelegate {\n+\n+    weak var delegate: SearchBarCellDelegate?\n+\n+    private let searchBar = UISearchBar(frame: .zero)\n+    private let segmentControl = UISegmentedControl(frame: .zero)\n+    var segmentControlLeadingConstraint: Constraint!\n+\n+    override init(frame: CGRect) {\n+        super.init(frame: frame)\n+        backgroundColor = .white\n+\n+        searchBar.returnKeyType = .search\n+        searchBar.enablesReturnKeyAutomatically = false\n+        searchBar.searchBarStyle = .minimal\n+        searchBar.delegate = self\n+\n+        contentView.addSubview(searchBar)\n+        contentView.addSubview(segmentControl)\n+\n+        searchBar.snp.makeConstraints { make in\n+            make.leading.centerY.equalTo(contentView)\n+            make.trailing.equalTo(segmentControl.snp.leading)\n+        }\n+\n+        segmentControl.snp.makeConstraints { make in\n+            segmentControlLeadingConstraint = make.leading.equalTo(contentView.snp.trailing).constraint\n+            make.trailing.equalTo(contentView.safeAreaLayoutGuide).inset(15)\n+            make.top.bottom.equalTo(contentView)\n+\n+        }\n+\n+        segmentControl.addTarget(self, action: #selector(updateSegement), for: .valueChanged)\n+\n+        setSegmentControl()\n+        segmentControlLeadingConstraint.deactivate()","path":"Classes/Section Controllers/SearchBar/SearchSegmentBarCell.swift","position":47,"original_position":47,"commit_id":"d4f11ef79b2d22e4af701e39cdabc5b8b008a425","original_commit_id":"d4f11ef79b2d22e4af701e39cdabc5b8b008a425","user":{"login":"Huddie","id":10662471,"node_id":"MDQ6VXNlcjEwNjYyNDcx","avatar_url":"https://avatars0.githubusercontent.com/u/10662471?v=4","gravatar_id":"","url":"https://api.github.com/users/Huddie","html_url":"https://github.com/Huddie","followers_url":"https://api.github.com/users/Huddie/followers","following_url":"https://api.github.com/users/Huddie/following{/other_user}","gists_url":"https://api.github.com/users/Huddie/gists{/gist_id}","starred_url":"https://api.github.com/users/Huddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huddie/subscriptions","organizations_url":"https://api.github.com/users/Huddie/orgs","repos_url":"https://api.github.com/users/Huddie/repos","events_url":"https://api.github.com/users/Huddie/events{/privacy}","received_events_url":"https://api.github.com/users/Huddie/received_events","type":"User","site_admin":false},"body":"Deactivated on start due to the search bar not being in editing mode. Once you start editing the constraint becomes activated","created_at":"2019-03-14T23:08:33Z","updated_at":"2019-03-14T23:08:33Z","html_url":"https://github.com/GitHawkApp/GitHawk/pull/2687#discussion_r265799775","pull_request_url":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/2687","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/comments/265799775"},"html":{"href":"https://github.com/GitHawkApp/GitHawk/pull/2687#discussion_r265799775"},"pull_request":{"href":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/2687"}},"in_reply_to_id":265700179},"pull_request":{"url":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/2687","id":260590413,"node_id":"MDExOlB1bGxSZXF1ZXN0MjYwNTkwNDEz","html_url":"https://github.com/GitHawkApp/GitHawk/pull/2687","diff_url":"https://github.com/GitHawkApp/GitHawk/pull/2687.diff","patch_url":"https://github.com/GitHawkApp/GitHawk/pull/2687.patch","issue_url":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/2687","number":2687,"state":"open","locked":false,"title":"Allow for quick toggle between open/closed issues","user":{"login":"Huddie","id":10662471,"node_id":"MDQ6VXNlcjEwNjYyNDcx","avatar_url":"https://avatars0.githubusercontent.com/u/10662471?v=4","gravatar_id":"","url":"https://api.github.com/users/Huddie","html_url":"https://github.com/Huddie","followers_url":"https://api.github.com/users/Huddie/followers","following_url":"https://api.github.com/users/Huddie/following{/other_user}","gists_url":"https://api.github.com/users/Huddie/gists{/gist_id}","starred_url":"https://api.github.com/users/Huddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huddie/subscriptions","organizations_url":"https://api.github.com/users/Huddie/orgs","repos_url":"https://api.github.com/users/Huddie/repos","events_url":"https://api.github.com/users/Huddie/events{/privacy}","received_events_url":"https://api.github.com/users/Huddie/received_events","type":"User","site_admin":false},"body":"Currently, a WIP, looking for some feedback.\r\nCloses #374 \r\n\r\nQuick description:\r\n\r\nDuring Editing: \r\nSegment Bar recedes allowing easy typing\r\n\r\nWhen Finished Editing:\r\nSegment Bar appears allowing a quick move between closed/open issues\r\n\r\nIt currently does update the state properly and the list does refresh properly","created_at":"2019-03-13T01:12:51Z","updated_at":"2019-03-14T23:08:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ac8157f68b6c52d06f5debb1fbf93c07e757d658","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1147811854,"node_id":"MDU6TGFiZWwxMTQ3ODExODU0","url":"https://api.github.com/repos/GitHawkApp/GitHawk/labels/WIP","name":"WIP","color":"d0c2fc","default":false},{"id":1147818816,"node_id":"MDU6TGFiZWwxMTQ3ODE4ODE2","url":"https://api.github.com/repos/GitHawkApp/GitHawk/labels/awaiting-review","name":"awaiting-review","color":"aa2e53","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/2687/commits","review_comments_url":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/2687/comments","review_comment_url":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/comments{/number}","comments_url":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/2687/comments","statuses_url":"https://api.github.com/repos/GitHawkApp/GitHawk/statuses/d4f11ef79b2d22e4af701e39cdabc5b8b008a425","head":{"label":"Huddie:open-close-toggle","ref":"open-close-toggle","sha":"d4f11ef79b2d22e4af701e39cdabc5b8b008a425","user":{"login":"Huddie","id":10662471,"node_id":"MDQ6VXNlcjEwNjYyNDcx","avatar_url":"https://avatars0.githubusercontent.com/u/10662471?v=4","gravatar_id":"","url":"https://api.github.com/users/Huddie","html_url":"https://github.com/Huddie","followers_url":"https://api.github.com/users/Huddie/followers","following_url":"https://api.github.com/users/Huddie/following{/other_user}","gists_url":"https://api.github.com/users/Huddie/gists{/gist_id}","starred_url":"https://api.github.com/users/Huddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huddie/subscriptions","organizations_url":"https://api.github.com/users/Huddie/orgs","repos_url":"https://api.github.com/users/Huddie/repos","events_url":"https://api.github.com/users/Huddie/events{/privacy}","received_events_url":"https://api.github.com/users/Huddie/received_events","type":"User","site_admin":false},"repo":{"id":141465914,"node_id":"MDEwOlJlcG9zaXRvcnkxNDE0NjU5MTQ=","name":"GitHawk","full_name":"Huddie/GitHawk","private":false,"owner":{"login":"Huddie","id":10662471,"node_id":"MDQ6VXNlcjEwNjYyNDcx","avatar_url":"https://avatars0.githubusercontent.com/u/10662471?v=4","gravatar_id":"","url":"https://api.github.com/users/Huddie","html_url":"https://github.com/Huddie","followers_url":"https://api.github.com/users/Huddie/followers","following_url":"https://api.github.com/users/Huddie/following{/other_user}","gists_url":"https://api.github.com/users/Huddie/gists{/gist_id}","starred_url":"https://api.github.com/users/Huddie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Huddie/subscriptions","organizations_url":"https://api.github.com/users/Huddie/orgs","repos_url":"https://api.github.com/users/Huddie/repos","events_url":"https://api.github.com/users/Huddie/events{/privacy}","received_events_url":"https://api.github.com/users/Huddie/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Huddie/GitHawk","description":"A GitHub project manager app for iOS.","fork":true,"url":"https://api.github.com/repos/Huddie/GitHawk","forks_url":"https://api.github.com/repos/Huddie/GitHawk/forks","keys_url":"https://api.github.com/repos/Huddie/GitHawk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Huddie/GitHawk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Huddie/GitHawk/teams","hooks_url":"https://api.github.com/repos/Huddie/GitHawk/hooks","issue_events_url":"https://api.github.com/repos/Huddie/GitHawk/issues/events{/number}","events_url":"https://api.github.com/repos/Huddie/GitHawk/events","assignees_url":"https://api.github.com/repos/Huddie/GitHawk/assignees{/user}","branches_url":"https://api.github.com/repos/Huddie/GitHawk/branches{/branch}","tags_url":"https://api.github.com/repos/Huddie/GitHawk/tags","blobs_url":"https://api.github.com/repos/Huddie/GitHawk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Huddie/GitHawk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Huddie/GitHawk/git/refs{/sha}","trees_url":"https://api.github.com/repos/Huddie/GitHawk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Huddie/GitHawk/statuses/{sha}","languages_url":"https://api.github.com/repos/Huddie/GitHawk/languages","stargazers_url":"https://api.github.com/repos/Huddie/GitHawk/stargazers","contributors_url":"https://api.github.com/repos/Huddie/GitHawk/contributors","subscribers_url":"https://api.github.com/repos/Huddie/GitHawk/subscribers","subscription_url":"https://api.github.com/repos/Huddie/GitHawk/subscription","commits_url":"https://api.github.com/repos/Huddie/GitHawk/commits{/sha}","git_commits_url":"https://api.github.com/repos/Huddie/GitHawk/git/commits{/sha}","comments_url":"https://api.github.com/repos/Huddie/GitHawk/comments{/number}","issue_comment_url":"https://api.github.com/repos/Huddie/GitHawk/issues/comments{/number}","contents_url":"https://api.github.com/repos/Huddie/GitHawk/contents/{+path}","compare_url":"https://api.github.com/repos/Huddie/GitHawk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Huddie/GitHawk/merges","archive_url":"https://api.github.com/repos/Huddie/GitHawk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Huddie/GitHawk/downloads","issues_url":"https://api.github.com/repos/Huddie/GitHawk/issues{/number}","pulls_url":"https://api.github.com/repos/Huddie/GitHawk/pulls{/number}","milestones_url":"https://api.github.com/repos/Huddie/GitHawk/milestones{/number}","notifications_url":"https://api.github.com/repos/Huddie/GitHawk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Huddie/GitHawk/labels{/name}","releases_url":"https://api.github.com/repos/Huddie/GitHawk/releases{/id}","deployments_url":"https://api.github.com/repos/Huddie/GitHawk/deployments","created_at":"2018-07-18T17:10:28Z","updated_at":"2018-08-15T00:42:46Z","pushed_at":"2019-03-13T04:26:21Z","git_url":"git://github.com/Huddie/GitHawk.git","ssh_url":"git@github.com:Huddie/GitHawk.git","clone_url":"https://github.com/Huddie/GitHawk.git","svn_url":"https://github.com/Huddie/GitHawk","homepage":"http://githawk.com","size":163071,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":1,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"GitHawkApp:master","ref":"master","sha":"c2b2e973bf8eec3a9e6d429ff661cf87c242cf16","user":{"login":"GitHawkApp","id":32285710,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjg1NzEw","avatar_url":"https://avatars3.githubusercontent.com/u/32285710?v=4","gravatar_id":"","url":"https://api.github.com/users/GitHawkApp","html_url":"https://github.com/GitHawkApp","followers_url":"https://api.github.com/users/GitHawkApp/followers","following_url":"https://api.github.com/users/GitHawkApp/following{/other_user}","gists_url":"https://api.github.com/users/GitHawkApp/gists{/gist_id}","starred_url":"https://api.github.com/users/GitHawkApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHawkApp/subscriptions","organizations_url":"https://api.github.com/users/GitHawkApp/orgs","repos_url":"https://api.github.com/users/GitHawkApp/repos","events_url":"https://api.github.com/users/GitHawkApp/events{/privacy}","received_events_url":"https://api.github.com/users/GitHawkApp/received_events","type":"Organization","site_admin":false},"repo":{"id":89921801,"node_id":"MDEwOlJlcG9zaXRvcnk4OTkyMTgwMQ==","name":"GitHawk","full_name":"GitHawkApp/GitHawk","private":false,"owner":{"login":"GitHawkApp","id":32285710,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMyMjg1NzEw","avatar_url":"https://avatars3.githubusercontent.com/u/32285710?v=4","gravatar_id":"","url":"https://api.github.com/users/GitHawkApp","html_url":"https://github.com/GitHawkApp","followers_url":"https://api.github.com/users/GitHawkApp/followers","following_url":"https://api.github.com/users/GitHawkApp/following{/other_user}","gists_url":"https://api.github.com/users/GitHawkApp/gists{/gist_id}","starred_url":"https://api.github.com/users/GitHawkApp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GitHawkApp/subscriptions","organizations_url":"https://api.github.com/users/GitHawkApp/orgs","repos_url":"https://api.github.com/users/GitHawkApp/repos","events_url":"https://api.github.com/users/GitHawkApp/events{/privacy}","received_events_url":"https://api.github.com/users/GitHawkApp/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/GitHawkApp/GitHawk","description":"The best iOS app for GitHub.","fork":false,"url":"https://api.github.com/repos/GitHawkApp/GitHawk","forks_url":"https://api.github.com/repos/GitHawkApp/GitHawk/forks","keys_url":"https://api.github.com/repos/GitHawkApp/GitHawk/keys{/key_id}","collaborators_url":"https://api.github.com/repos/GitHawkApp/GitHawk/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/GitHawkApp/GitHawk/teams","hooks_url":"https://api.github.com/repos/GitHawkApp/GitHawk/hooks","issue_events_url":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/events{/number}","events_url":"https://api.github.com/repos/GitHawkApp/GitHawk/events","assignees_url":"https://api.github.com/repos/GitHawkApp/GitHawk/assignees{/user}","branches_url":"https://api.github.com/repos/GitHawkApp/GitHawk/branches{/branch}","tags_url":"https://api.github.com/repos/GitHawkApp/GitHawk/tags","blobs_url":"https://api.github.com/repos/GitHawkApp/GitHawk/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/GitHawkApp/GitHawk/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/GitHawkApp/GitHawk/git/refs{/sha}","trees_url":"https://api.github.com/repos/GitHawkApp/GitHawk/git/trees{/sha}","statuses_url":"https://api.github.com/repos/GitHawkApp/GitHawk/statuses/{sha}","languages_url":"https://api.github.com/repos/GitHawkApp/GitHawk/languages","stargazers_url":"https://api.github.com/repos/GitHawkApp/GitHawk/stargazers","contributors_url":"https://api.github.com/repos/GitHawkApp/GitHawk/contributors","subscribers_url":"https://api.github.com/repos/GitHawkApp/GitHawk/subscribers","subscription_url":"https://api.github.com/repos/GitHawkApp/GitHawk/subscription","commits_url":"https://api.github.com/repos/GitHawkApp/GitHawk/commits{/sha}","git_commits_url":"https://api.github.com/repos/GitHawkApp/GitHawk/git/commits{/sha}","comments_url":"https://api.github.com/repos/GitHawkApp/GitHawk/comments{/number}","issue_comment_url":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/comments{/number}","contents_url":"https://api.github.com/repos/GitHawkApp/GitHawk/contents/{+path}","compare_url":"https://api.github.com/repos/GitHawkApp/GitHawk/compare/{base}...{head}","merges_url":"https://api.github.com/repos/GitHawkApp/GitHawk/merges","archive_url":"https://api.github.com/repos/GitHawkApp/GitHawk/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/GitHawkApp/GitHawk/downloads","issues_url":"https://api.github.com/repos/GitHawkApp/GitHawk/issues{/number}","pulls_url":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls{/number}","milestones_url":"https://api.github.com/repos/GitHawkApp/GitHawk/milestones{/number}","notifications_url":"https://api.github.com/repos/GitHawkApp/GitHawk/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/GitHawkApp/GitHawk/labels{/name}","releases_url":"https://api.github.com/repos/GitHawkApp/GitHawk/releases{/id}","deployments_url":"https://api.github.com/repos/GitHawkApp/GitHawk/deployments","created_at":"2017-05-01T12:21:48Z","updated_at":"2019-03-14T22:54:35Z","pushed_at":"2019-03-14T20:34:20Z","git_url":"git://github.com/GitHawkApp/GitHawk.git","ssh_url":"git@github.com:GitHawkApp/GitHawk.git","clone_url":"https://github.com/GitHawkApp/GitHawk.git","svn_url":"https://github.com/GitHawkApp/GitHawk","homepage":"http://githawk.com","size":161206,"stargazers_count":2004,"watchers_count":2004,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":240,"mirror_url":null,"archived":false,"open_issues_count":411,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":240,"open_issues":411,"watchers":2004,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/2687"},"html":{"href":"https://github.com/GitHawkApp/GitHawk/pull/2687"},"issue":{"href":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/2687"},"comments":{"href":"https://api.github.com/repos/GitHawkApp/GitHawk/issues/2687/comments"},"review_comments":{"href":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/2687/comments"},"review_comment":{"href":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/GitHawkApp/GitHawk/pulls/2687/commits"},"statuses":{"href":"https://api.github.com/repos/GitHawkApp/GitHawk/statuses/d4f11ef79b2d22e4af701e39cdabc5b8b008a425"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Huddie"}}