{"action":"created","comment":{"url":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/comments/200864418","pull_request_review_id":135256953,"id":200864418,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDg2NDQxOA==","diff_hunk":"@@ -111,20 +112,38 @@ class CruSegmentedControl: UIControl {\n         }\n     }\n     \n+    func updateSelectorPosition(offset: CGFloat) {\n+        if !self.isAnimating {\n+            self.selector.frame.origin.x = offset/CGFloat(self.buttons.count)\n+        }\n+        let selectorWidth = self.frame.width/CGFloat(buttons.count)\n+        let centerOfSelector = self.selector.frame.origin.x + selectorWidth/2\n+        for button in self.buttons {\n+            // is the selector between me and another button? (within a certain ammount)\n+            let centerOfButton = button.frame.origin.x + button.frame.width/2\n+            if centerOfButton - selectorWidth ... centerOfButton + selectorWidth ~= centerOfSelector {","path":"CruCentralCoast/CustomViews/CustomSegmentedControl.swift","position":56,"original_position":39,"commit_id":"860d47c02204062754ee69daff2f2b1d936405b8","original_commit_id":"aaab739560146ae9ea76963e583ed8b8902862bf","user":{"login":"tydahlwave","id":4985998,"node_id":"MDQ6VXNlcjQ5ODU5OTg=","avatar_url":"https://avatars1.githubusercontent.com/u/4985998?v=4","gravatar_id":"","url":"https://api.github.com/users/tydahlwave","html_url":"https://github.com/tydahlwave","followers_url":"https://api.github.com/users/tydahlwave/followers","following_url":"https://api.github.com/users/tydahlwave/following{/other_user}","gists_url":"https://api.github.com/users/tydahlwave/gists{/gist_id}","starred_url":"https://api.github.com/users/tydahlwave/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tydahlwave/subscriptions","organizations_url":"https://api.github.com/users/tydahlwave/orgs","repos_url":"https://api.github.com/users/tydahlwave/repos","events_url":"https://api.github.com/users/tydahlwave/events{/privacy}","received_events_url":"https://api.github.com/users/tydahlwave/received_events","type":"User","site_admin":false},"body":"👌","created_at":"2018-07-09T01:39:43Z","updated_at":"2018-07-09T01:39:44Z","html_url":"https://github.com/CruCentralCoast/CruiOS/pull/167#discussion_r200864418","pull_request_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/167","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/comments/200864418"},"html":{"href":"https://github.com/CruCentralCoast/CruiOS/pull/167#discussion_r200864418"},"pull_request":{"href":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/167"}},"in_reply_to_id":200828355},"pull_request":{"url":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/167","id":199630866,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5NjMwODY2","html_url":"https://github.com/CruCentralCoast/CruiOS/pull/167","diff_url":"https://github.com/CruCentralCoast/CruiOS/pull/167.diff","patch_url":"https://github.com/CruCentralCoast/CruiOS/pull/167.patch","issue_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/issues/167","number":167,"state":"open","locked":false,"title":"A bunch of stuff for profile and resources","user":{"login":"micantre","id":22382440,"node_id":"MDQ6VXNlcjIyMzgyNDQw","avatar_url":"https://avatars1.githubusercontent.com/u/22382440?v=4","gravatar_id":"","url":"https://api.github.com/users/micantre","html_url":"https://github.com/micantre","followers_url":"https://api.github.com/users/micantre/followers","following_url":"https://api.github.com/users/micantre/following{/other_user}","gists_url":"https://api.github.com/users/micantre/gists{/gist_id}","starred_url":"https://api.github.com/users/micantre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/micantre/subscriptions","organizations_url":"https://api.github.com/users/micantre/orgs","repos_url":"https://api.github.com/users/micantre/repos","events_url":"https://api.github.com/users/micantre/events{/privacy}","received_events_url":"https://api.github.com/users/micantre/received_events","type":"User","site_admin":false},"body":"Stuff is kinda ugly, especially my custom thing... but everything is functional i believe\r\n<img width=\"624\" alt=\"screen shot 2018-07-05 at 7 37 12 pm\" src=\"https://user-images.githubusercontent.com/22382440/42357097-00b06d6e-808b-11e8-97c7-54dff5a681dc.png\">\r\n<img width=\"624\" alt=\"screen shot 2018-07-05 at 7 37 05 pm\" src=\"https://user-images.githubusercontent.com/22382440/42357098-00c9048c-808b-11e8-8797-88a19b0d8354.png\">\r\n<img width=\"624\" alt=\"screen shot 2018-07-05 at 7 36 54 pm\" src=\"https://user-images.githubusercontent.com/22382440/42357099-00e0f2c2-808b-11e8-982c-e400fcf5e11c.png\">\r\n<img width=\"624\" alt=\"screen shot 2018-07-05 at 7 36 48 pm\" src=\"https://user-images.githubusercontent.com/22382440/42357100-00f79d6a-808b-11e8-93e7-0db76e75bf39.png\">\r\n<img width=\"624\" alt=\"screen shot 2018-07-05 at 7 36 43 pm\" src=\"https://user-images.githubusercontent.com/22382440/42357101-01218224-808b-11e8-8318-1913c7e42dc5.png\">\r\n\r\n\r\n\r\n\r\n\r\n\r\n","created_at":"2018-07-06T02:35:41Z","updated_at":"2018-07-09T01:39:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"396750de6cf8542fad115a698f64a09b41249bd1","assignee":null,"assignees":[],"requested_reviewers":[{"login":"landongerrits","id":25047971,"node_id":"MDQ6VXNlcjI1MDQ3OTcx","avatar_url":"https://avatars3.githubusercontent.com/u/25047971?v=4","gravatar_id":"","url":"https://api.github.com/users/landongerrits","html_url":"https://github.com/landongerrits","followers_url":"https://api.github.com/users/landongerrits/followers","following_url":"https://api.github.com/users/landongerrits/following{/other_user}","gists_url":"https://api.github.com/users/landongerrits/gists{/gist_id}","starred_url":"https://api.github.com/users/landongerrits/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landongerrits/subscriptions","organizations_url":"https://api.github.com/users/landongerrits/orgs","repos_url":"https://api.github.com/users/landongerrits/repos","events_url":"https://api.github.com/users/landongerrits/events{/privacy}","received_events_url":"https://api.github.com/users/landongerrits/received_events","type":"User","site_admin":false},{"login":"cstock123","id":32626648,"node_id":"MDQ6VXNlcjMyNjI2NjQ4","avatar_url":"https://avatars2.githubusercontent.com/u/32626648?v=4","gravatar_id":"","url":"https://api.github.com/users/cstock123","html_url":"https://github.com/cstock123","followers_url":"https://api.github.com/users/cstock123/followers","following_url":"https://api.github.com/users/cstock123/following{/other_user}","gists_url":"https://api.github.com/users/cstock123/gists{/gist_id}","starred_url":"https://api.github.com/users/cstock123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cstock123/subscriptions","organizations_url":"https://api.github.com/users/cstock123/orgs","repos_url":"https://api.github.com/users/cstock123/repos","events_url":"https://api.github.com/users/cstock123/events{/privacy}","received_events_url":"https://api.github.com/users/cstock123/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/167/commits","review_comments_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/167/comments","review_comment_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/issues/167/comments","statuses_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/statuses/860d47c02204062754ee69daff2f2b1d936405b8","head":{"label":"CruCentralCoast:michael","ref":"michael","sha":"860d47c02204062754ee69daff2f2b1d936405b8","user":{"login":"CruCentralCoast","id":18333520,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzMzNTIw","avatar_url":"https://avatars3.githubusercontent.com/u/18333520?v=4","gravatar_id":"","url":"https://api.github.com/users/CruCentralCoast","html_url":"https://github.com/CruCentralCoast","followers_url":"https://api.github.com/users/CruCentralCoast/followers","following_url":"https://api.github.com/users/CruCentralCoast/following{/other_user}","gists_url":"https://api.github.com/users/CruCentralCoast/gists{/gist_id}","starred_url":"https://api.github.com/users/CruCentralCoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruCentralCoast/subscriptions","organizations_url":"https://api.github.com/users/CruCentralCoast/orgs","repos_url":"https://api.github.com/users/CruCentralCoast/repos","events_url":"https://api.github.com/users/CruCentralCoast/events{/privacy}","received_events_url":"https://api.github.com/users/CruCentralCoast/received_events","type":"Organization","site_admin":false},"repo":{"id":61389709,"node_id":"MDEwOlJlcG9zaXRvcnk2MTM4OTcwOQ==","name":"CruiOS","full_name":"CruCentralCoast/CruiOS","owner":{"login":"CruCentralCoast","id":18333520,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzMzNTIw","avatar_url":"https://avatars3.githubusercontent.com/u/18333520?v=4","gravatar_id":"","url":"https://api.github.com/users/CruCentralCoast","html_url":"https://github.com/CruCentralCoast","followers_url":"https://api.github.com/users/CruCentralCoast/followers","following_url":"https://api.github.com/users/CruCentralCoast/following{/other_user}","gists_url":"https://api.github.com/users/CruCentralCoast/gists{/gist_id}","starred_url":"https://api.github.com/users/CruCentralCoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruCentralCoast/subscriptions","organizations_url":"https://api.github.com/users/CruCentralCoast/orgs","repos_url":"https://api.github.com/users/CruCentralCoast/repos","events_url":"https://api.github.com/users/CruCentralCoast/events{/privacy}","received_events_url":"https://api.github.com/users/CruCentralCoast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CruCentralCoast/CruiOS","description":"iOS mobile app for Cru Central Coast","fork":false,"url":"https://api.github.com/repos/CruCentralCoast/CruiOS","forks_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/forks","keys_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/teams","hooks_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/hooks","issue_events_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/issues/events{/number}","events_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/events","assignees_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/assignees{/user}","branches_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/branches{/branch}","tags_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/tags","blobs_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/statuses/{sha}","languages_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/languages","stargazers_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/stargazers","contributors_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/contributors","subscribers_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/subscribers","subscription_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/subscription","commits_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/contents/{+path}","compare_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/merges","archive_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/downloads","issues_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/issues{/number}","pulls_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls{/number}","milestones_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/milestones{/number}","notifications_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/labels{/name}","releases_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/releases{/id}","deployments_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/deployments","created_at":"2016-06-17T17:10:49Z","updated_at":"2017-09-18T00:13:51Z","pushed_at":"2018-07-08T20:19:21Z","git_url":"git://github.com/CruCentralCoast/CruiOS.git","ssh_url":"git@github.com:CruCentralCoast/CruiOS.git","clone_url":"https://github.com/CruCentralCoast/CruiOS.git","svn_url":"https://github.com/CruCentralCoast/CruiOS","homepage":null,"size":371027,"stargazers_count":1,"watchers_count":1,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":28,"license":null,"forks":2,"open_issues":28,"watchers":1,"default_branch":"develop"}},"base":{"label":"CruCentralCoast:release_2.0","ref":"release_2.0","sha":"ab23a1eeaf04051d5c98642f1200dfac239f8fee","user":{"login":"CruCentralCoast","id":18333520,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzMzNTIw","avatar_url":"https://avatars3.githubusercontent.com/u/18333520?v=4","gravatar_id":"","url":"https://api.github.com/users/CruCentralCoast","html_url":"https://github.com/CruCentralCoast","followers_url":"https://api.github.com/users/CruCentralCoast/followers","following_url":"https://api.github.com/users/CruCentralCoast/following{/other_user}","gists_url":"https://api.github.com/users/CruCentralCoast/gists{/gist_id}","starred_url":"https://api.github.com/users/CruCentralCoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruCentralCoast/subscriptions","organizations_url":"https://api.github.com/users/CruCentralCoast/orgs","repos_url":"https://api.github.com/users/CruCentralCoast/repos","events_url":"https://api.github.com/users/CruCentralCoast/events{/privacy}","received_events_url":"https://api.github.com/users/CruCentralCoast/received_events","type":"Organization","site_admin":false},"repo":{"id":61389709,"node_id":"MDEwOlJlcG9zaXRvcnk2MTM4OTcwOQ==","name":"CruiOS","full_name":"CruCentralCoast/CruiOS","owner":{"login":"CruCentralCoast","id":18333520,"node_id":"MDEyOk9yZ2FuaXphdGlvbjE4MzMzNTIw","avatar_url":"https://avatars3.githubusercontent.com/u/18333520?v=4","gravatar_id":"","url":"https://api.github.com/users/CruCentralCoast","html_url":"https://github.com/CruCentralCoast","followers_url":"https://api.github.com/users/CruCentralCoast/followers","following_url":"https://api.github.com/users/CruCentralCoast/following{/other_user}","gists_url":"https://api.github.com/users/CruCentralCoast/gists{/gist_id}","starred_url":"https://api.github.com/users/CruCentralCoast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CruCentralCoast/subscriptions","organizations_url":"https://api.github.com/users/CruCentralCoast/orgs","repos_url":"https://api.github.com/users/CruCentralCoast/repos","events_url":"https://api.github.com/users/CruCentralCoast/events{/privacy}","received_events_url":"https://api.github.com/users/CruCentralCoast/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CruCentralCoast/CruiOS","description":"iOS mobile app for Cru Central Coast","fork":false,"url":"https://api.github.com/repos/CruCentralCoast/CruiOS","forks_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/forks","keys_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/teams","hooks_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/hooks","issue_events_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/issues/events{/number}","events_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/events","assignees_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/assignees{/user}","branches_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/branches{/branch}","tags_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/tags","blobs_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/git/refs{/sha}","trees_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/statuses/{sha}","languages_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/languages","stargazers_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/stargazers","contributors_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/contributors","subscribers_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/subscribers","subscription_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/subscription","commits_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/commits{/sha}","git_commits_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/git/commits{/sha}","comments_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/comments{/number}","issue_comment_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/issues/comments{/number}","contents_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/contents/{+path}","compare_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/merges","archive_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/downloads","issues_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/issues{/number}","pulls_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls{/number}","milestones_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/milestones{/number}","notifications_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/labels{/name}","releases_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/releases{/id}","deployments_url":"https://api.github.com/repos/CruCentralCoast/CruiOS/deployments","created_at":"2016-06-17T17:10:49Z","updated_at":"2017-09-18T00:13:51Z","pushed_at":"2018-07-08T20:19:21Z","git_url":"git://github.com/CruCentralCoast/CruiOS.git","ssh_url":"git@github.com:CruCentralCoast/CruiOS.git","clone_url":"https://github.com/CruCentralCoast/CruiOS.git","svn_url":"https://github.com/CruCentralCoast/CruiOS","homepage":null,"size":371027,"stargazers_count":1,"watchers_count":1,"language":"Swift","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"archived":false,"open_issues_count":28,"license":null,"forks":2,"open_issues":28,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/167"},"html":{"href":"https://github.com/CruCentralCoast/CruiOS/pull/167"},"issue":{"href":"https://api.github.com/repos/CruCentralCoast/CruiOS/issues/167"},"comments":{"href":"https://api.github.com/repos/CruCentralCoast/CruiOS/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CruCentralCoast/CruiOS/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/CruCentralCoast/CruiOS/statuses/860d47c02204062754ee69daff2f2b1d936405b8"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"tydahlwave"}}