{"action":"created","comment":{"url":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/comments/63269156","id":63269156,"diff_hunk":"@@ -0,0 +1,50 @@\n+//\n+//  UIViewControllerExtension.swift\n+//  whereuat\n+//\n+//  Created by Raymond Jacobson on 5/11/16.\n+//  Copyright © 2016 whereuat. All rights reserved.\n+//\n+\n+import UIKit\n+\n+/*\n+ * This extension extends a view controller to let it update its own navigation bar.\n+ * Despite being not the greatest implementation of this functionality, it is the\n+ * canonical 'Swift' way to do things and adheres to the SlideMenuControllerSwift library\n+ * we are using for this application\n+ */\n+extension UIViewController {\n+    \n+    /*\n+     * setNavigationBarItems sets the icons in the navigation bar\n+     */\n+    func setNavigationBarItems(pageTitle: String = \"whereu@\") {\n+        // Set the color of the bar\n+        self.navigationController?.navigationBar.backgroundColor = ColorWheel.offWhite\n+        self.navigationController?.navigationBar.tintColor = ColorWheel.darkGray\n+        \n+        // Define left hand buttons\n+        let drawerButton: UIBarButtonItem = UIBarButtonItem(image: UIImage(named: \"ic_menu\")!, style:UIBarButtonItemStyle.Plain, target: self, action: #selector(self.toggleLeft))\n+        let pageDescription: UIBarButtonItem = UIBarButtonItem(title: pageTitle, style: UIBarButtonItemStyle.Plain, target: self, action: nil)\n+        if let font = FontStyle.h4 {\n+            pageDescription.setTitleTextAttributes([NSFontAttributeName: font], forState: UIControlState.Normal)\n+        }\n+        self.navigationItem.leftBarButtonItems = [drawerButton, pageDescription]\n+\n+        self.slideMenuController()?.removeLeftGestures()\n+        self.slideMenuController()?.removeRightGestures()\n+        self.slideMenuController()?.addLeftGestures()\n+        self.slideMenuController()?.addRightGestures()\n+    }\n+    ","path":"whereuat-ios/Extension/UIViewControllerExtension.swift","position":40,"original_position":40,"commit_id":"e4bc68d6779c766407d2e0200b41ae9a3164c7c4","original_commit_id":"e4bc68d6779c766407d2e0200b41ae9a3164c7c4","user":{"login":"raymondjacobson","id":2731362,"avatar_url":"https://avatars.githubusercontent.com/u/2731362?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondjacobson","html_url":"https://github.com/raymondjacobson","followers_url":"https://api.github.com/users/raymondjacobson/followers","following_url":"https://api.github.com/users/raymondjacobson/following{/other_user}","gists_url":"https://api.github.com/users/raymondjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondjacobson/subscriptions","organizations_url":"https://api.github.com/users/raymondjacobson/orgs","repos_url":"https://api.github.com/users/raymondjacobson/repos","events_url":"https://api.github.com/users/raymondjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/raymondjacobson/received_events","type":"User","site_admin":false},"body":"Kill this fn","created_at":"2016-05-14T01:41:01Z","updated_at":"2016-05-14T01:41:01Z","html_url":"https://github.com/whereuat/whereuat-ios/pull/41#discussion_r63269156","pull_request_url":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/41","_links":{"self":{"href":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/comments/63269156"},"html":{"href":"https://github.com/whereuat/whereuat-ios/pull/41#discussion_r63269156"},"pull_request":{"href":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/41"}}},"pull_request":{"url":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/41","id":70077245,"html_url":"https://github.com/whereuat/whereuat-ios/pull/41","diff_url":"https://github.com/whereuat/whereuat-ios/pull/41.diff","patch_url":"https://github.com/whereuat/whereuat-ios/pull/41.patch","issue_url":"https://api.github.com/repos/whereuat/whereuat-ios/issues/41","number":41,"state":"open","locked":false,"title":"IOS #29 Implement top bar navigation for drawer","user":{"login":"raymondjacobson","id":2731362,"avatar_url":"https://avatars.githubusercontent.com/u/2731362?v=3","gravatar_id":"","url":"https://api.github.com/users/raymondjacobson","html_url":"https://github.com/raymondjacobson","followers_url":"https://api.github.com/users/raymondjacobson/followers","following_url":"https://api.github.com/users/raymondjacobson/following{/other_user}","gists_url":"https://api.github.com/users/raymondjacobson/gists{/gist_id}","starred_url":"https://api.github.com/users/raymondjacobson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raymondjacobson/subscriptions","organizations_url":"https://api.github.com/users/raymondjacobson/orgs","repos_url":"https://api.github.com/users/raymondjacobson/repos","events_url":"https://api.github.com/users/raymondjacobson/events{/privacy}","received_events_url":"https://api.github.com/users/raymondjacobson/received_events","type":"User","site_admin":false},"body":"Vendorize support for drawer controller via\r\nhttps://github.com/whereuat/SlideMenuControllerSwift\r\n\r\nCloses #29 ","created_at":"2016-05-14T01:11:25Z","updated_at":"2016-05-14T01:41:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"862a05c3cc32887f08df295dbb1e86210f570ebf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/41/commits","review_comments_url":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/41/comments","review_comment_url":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/whereuat/whereuat-ios/issues/41/comments","statuses_url":"https://api.github.com/repos/whereuat/whereuat-ios/statuses/e4bc68d6779c766407d2e0200b41ae9a3164c7c4","head":{"label":"whereuat:navigation-bar","ref":"navigation-bar","sha":"e4bc68d6779c766407d2e0200b41ae9a3164c7c4","user":{"login":"whereuat","id":17060365,"avatar_url":"https://avatars.githubusercontent.com/u/17060365?v=3","gravatar_id":"","url":"https://api.github.com/users/whereuat","html_url":"https://github.com/whereuat","followers_url":"https://api.github.com/users/whereuat/followers","following_url":"https://api.github.com/users/whereuat/following{/other_user}","gists_url":"https://api.github.com/users/whereuat/gists{/gist_id}","starred_url":"https://api.github.com/users/whereuat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whereuat/subscriptions","organizations_url":"https://api.github.com/users/whereuat/orgs","repos_url":"https://api.github.com/users/whereuat/repos","events_url":"https://api.github.com/users/whereuat/events{/privacy}","received_events_url":"https://api.github.com/users/whereuat/received_events","type":"Organization","site_admin":false},"repo":{"id":51057923,"name":"whereuat-ios","full_name":"whereuat/whereuat-ios","owner":{"login":"whereuat","id":17060365,"avatar_url":"https://avatars.githubusercontent.com/u/17060365?v=3","gravatar_id":"","url":"https://api.github.com/users/whereuat","html_url":"https://github.com/whereuat","followers_url":"https://api.github.com/users/whereuat/followers","following_url":"https://api.github.com/users/whereuat/following{/other_user}","gists_url":"https://api.github.com/users/whereuat/gists{/gist_id}","starred_url":"https://api.github.com/users/whereuat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whereuat/subscriptions","organizations_url":"https://api.github.com/users/whereuat/orgs","repos_url":"https://api.github.com/users/whereuat/repos","events_url":"https://api.github.com/users/whereuat/events{/privacy}","received_events_url":"https://api.github.com/users/whereuat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/whereuat/whereuat-ios","description":"The iOS app for whereu@.","fork":false,"url":"https://api.github.com/repos/whereuat/whereuat-ios","forks_url":"https://api.github.com/repos/whereuat/whereuat-ios/forks","keys_url":"https://api.github.com/repos/whereuat/whereuat-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whereuat/whereuat-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whereuat/whereuat-ios/teams","hooks_url":"https://api.github.com/repos/whereuat/whereuat-ios/hooks","issue_events_url":"https://api.github.com/repos/whereuat/whereuat-ios/issues/events{/number}","events_url":"https://api.github.com/repos/whereuat/whereuat-ios/events","assignees_url":"https://api.github.com/repos/whereuat/whereuat-ios/assignees{/user}","branches_url":"https://api.github.com/repos/whereuat/whereuat-ios/branches{/branch}","tags_url":"https://api.github.com/repos/whereuat/whereuat-ios/tags","blobs_url":"https://api.github.com/repos/whereuat/whereuat-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whereuat/whereuat-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whereuat/whereuat-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/whereuat/whereuat-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whereuat/whereuat-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/whereuat/whereuat-ios/languages","stargazers_url":"https://api.github.com/repos/whereuat/whereuat-ios/stargazers","contributors_url":"https://api.github.com/repos/whereuat/whereuat-ios/contributors","subscribers_url":"https://api.github.com/repos/whereuat/whereuat-ios/subscribers","subscription_url":"https://api.github.com/repos/whereuat/whereuat-ios/subscription","commits_url":"https://api.github.com/repos/whereuat/whereuat-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/whereuat/whereuat-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/whereuat/whereuat-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/whereuat/whereuat-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/whereuat/whereuat-ios/contents/{+path}","compare_url":"https://api.github.com/repos/whereuat/whereuat-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whereuat/whereuat-ios/merges","archive_url":"https://api.github.com/repos/whereuat/whereuat-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whereuat/whereuat-ios/downloads","issues_url":"https://api.github.com/repos/whereuat/whereuat-ios/issues{/number}","pulls_url":"https://api.github.com/repos/whereuat/whereuat-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/whereuat/whereuat-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/whereuat/whereuat-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whereuat/whereuat-ios/labels{/name}","releases_url":"https://api.github.com/repos/whereuat/whereuat-ios/releases{/id}","deployments_url":"https://api.github.com/repos/whereuat/whereuat-ios/deployments","created_at":"2016-02-04T06:51:06Z","updated_at":"2016-02-09T04:58:24Z","pushed_at":"2016-05-14T01:25:11Z","git_url":"git://github.com/whereuat/whereuat-ios.git","ssh_url":"git@github.com:whereuat/whereuat-ios.git","clone_url":"https://github.com/whereuat/whereuat-ios.git","svn_url":"https://github.com/whereuat/whereuat-ios","homepage":null,"size":6520,"stargazers_count":1,"watchers_count":1,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":1,"default_branch":"master"}},"base":{"label":"whereuat:master","ref":"master","sha":"3d448201e036df9c8e024d8bc911301a1e576895","user":{"login":"whereuat","id":17060365,"avatar_url":"https://avatars.githubusercontent.com/u/17060365?v=3","gravatar_id":"","url":"https://api.github.com/users/whereuat","html_url":"https://github.com/whereuat","followers_url":"https://api.github.com/users/whereuat/followers","following_url":"https://api.github.com/users/whereuat/following{/other_user}","gists_url":"https://api.github.com/users/whereuat/gists{/gist_id}","starred_url":"https://api.github.com/users/whereuat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whereuat/subscriptions","organizations_url":"https://api.github.com/users/whereuat/orgs","repos_url":"https://api.github.com/users/whereuat/repos","events_url":"https://api.github.com/users/whereuat/events{/privacy}","received_events_url":"https://api.github.com/users/whereuat/received_events","type":"Organization","site_admin":false},"repo":{"id":51057923,"name":"whereuat-ios","full_name":"whereuat/whereuat-ios","owner":{"login":"whereuat","id":17060365,"avatar_url":"https://avatars.githubusercontent.com/u/17060365?v=3","gravatar_id":"","url":"https://api.github.com/users/whereuat","html_url":"https://github.com/whereuat","followers_url":"https://api.github.com/users/whereuat/followers","following_url":"https://api.github.com/users/whereuat/following{/other_user}","gists_url":"https://api.github.com/users/whereuat/gists{/gist_id}","starred_url":"https://api.github.com/users/whereuat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whereuat/subscriptions","organizations_url":"https://api.github.com/users/whereuat/orgs","repos_url":"https://api.github.com/users/whereuat/repos","events_url":"https://api.github.com/users/whereuat/events{/privacy}","received_events_url":"https://api.github.com/users/whereuat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/whereuat/whereuat-ios","description":"The iOS app for whereu@.","fork":false,"url":"https://api.github.com/repos/whereuat/whereuat-ios","forks_url":"https://api.github.com/repos/whereuat/whereuat-ios/forks","keys_url":"https://api.github.com/repos/whereuat/whereuat-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/whereuat/whereuat-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/whereuat/whereuat-ios/teams","hooks_url":"https://api.github.com/repos/whereuat/whereuat-ios/hooks","issue_events_url":"https://api.github.com/repos/whereuat/whereuat-ios/issues/events{/number}","events_url":"https://api.github.com/repos/whereuat/whereuat-ios/events","assignees_url":"https://api.github.com/repos/whereuat/whereuat-ios/assignees{/user}","branches_url":"https://api.github.com/repos/whereuat/whereuat-ios/branches{/branch}","tags_url":"https://api.github.com/repos/whereuat/whereuat-ios/tags","blobs_url":"https://api.github.com/repos/whereuat/whereuat-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/whereuat/whereuat-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/whereuat/whereuat-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/whereuat/whereuat-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/whereuat/whereuat-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/whereuat/whereuat-ios/languages","stargazers_url":"https://api.github.com/repos/whereuat/whereuat-ios/stargazers","contributors_url":"https://api.github.com/repos/whereuat/whereuat-ios/contributors","subscribers_url":"https://api.github.com/repos/whereuat/whereuat-ios/subscribers","subscription_url":"https://api.github.com/repos/whereuat/whereuat-ios/subscription","commits_url":"https://api.github.com/repos/whereuat/whereuat-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/whereuat/whereuat-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/whereuat/whereuat-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/whereuat/whereuat-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/whereuat/whereuat-ios/contents/{+path}","compare_url":"https://api.github.com/repos/whereuat/whereuat-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/whereuat/whereuat-ios/merges","archive_url":"https://api.github.com/repos/whereuat/whereuat-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/whereuat/whereuat-ios/downloads","issues_url":"https://api.github.com/repos/whereuat/whereuat-ios/issues{/number}","pulls_url":"https://api.github.com/repos/whereuat/whereuat-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/whereuat/whereuat-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/whereuat/whereuat-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/whereuat/whereuat-ios/labels{/name}","releases_url":"https://api.github.com/repos/whereuat/whereuat-ios/releases{/id}","deployments_url":"https://api.github.com/repos/whereuat/whereuat-ios/deployments","created_at":"2016-02-04T06:51:06Z","updated_at":"2016-02-09T04:58:24Z","pushed_at":"2016-05-14T01:25:11Z","git_url":"git://github.com/whereuat/whereuat-ios.git","ssh_url":"git@github.com:whereuat/whereuat-ios.git","clone_url":"https://github.com/whereuat/whereuat-ios.git","svn_url":"https://github.com/whereuat/whereuat-ios","homepage":null,"size":6520,"stargazers_count":1,"watchers_count":1,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":13,"forks":0,"open_issues":13,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/41"},"html":{"href":"https://github.com/whereuat/whereuat-ios/pull/41"},"issue":{"href":"https://api.github.com/repos/whereuat/whereuat-ios/issues/41"},"comments":{"href":"https://api.github.com/repos/whereuat/whereuat-ios/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/whereuat/whereuat-ios/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/whereuat/whereuat-ios/statuses/e4bc68d6779c766407d2e0200b41ae9a3164c7c4"}}}}