{"action":"created","comment":{"url":"https://api.github.com/repos/todem5/geometry/pulls/comments/55143461","id":55143461,"diff_hunk":"@@ -0,0 +1,64 @@\n+//\n+//  SettingsViewController.swift\n+//  geometry\n+//\n+//  Created by Dmitry Tolmachev on 21.02.16.\n+//  Copyright © 2016 Al Digit. All rights reserved.\n+//\n+\n+import UIKit\n+\n+protocol SettingsViewControllerDelegate: class {\n+    func settingsViewControllerFinished(settingsViewController: SettingsViewController)\n+}\n+\n+class SettingsViewController: UIViewController\n+{\n+    var red: CGFloat = 0.0\n+    var green: CGFloat = 0.0\n+    var blue: CGFloat = 0.0\n+    weak var delegate: SettingsViewControllerDelegate?\n+    \n+    @IBAction func close(sender: AnyObject) {\n+        dismissViewControllerAnimated(true, completion: nil)\n+        self.delegate?.settingsViewControllerFinished(self)\n+    }\n+    \n+    @IBOutlet weak var redcolor: UISlider!\n+    @IBOutlet weak var greencolor: UISlider!\n+    @IBOutlet weak var bluecolor: UISlider! \n+    \n+    @IBOutlet weak var labelRed: UILabel!\n+    @IBOutlet weak var labelGreen: UILabel!\n+    @IBOutlet weak var labelBlue: UILabel!\n+    \n+    @IBAction func colorChanged(sender: UISlider) {\n+        red = CGFloat(redcolor.value / 255.0)","path":"geometry/SettingsViewController.swift","position":36,"original_position":36,"commit_id":"206d1286caf3f263270dbba1b4cb949fda999320","original_commit_id":"206d1286caf3f263270dbba1b4cb949fda999320","user":{"login":"psumarokov","id":1746107,"avatar_url":"https://avatars.githubusercontent.com/u/1746107?v=3","gravatar_id":"","url":"https://api.github.com/users/psumarokov","html_url":"https://github.com/psumarokov","followers_url":"https://api.github.com/users/psumarokov/followers","following_url":"https://api.github.com/users/psumarokov/following{/other_user}","gists_url":"https://api.github.com/users/psumarokov/gists{/gist_id}","starred_url":"https://api.github.com/users/psumarokov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/psumarokov/subscriptions","organizations_url":"https://api.github.com/users/psumarokov/orgs","repos_url":"https://api.github.com/users/psumarokov/repos","events_url":"https://api.github.com/users/psumarokov/events{/privacy}","received_events_url":"https://api.github.com/users/psumarokov/received_events","type":"User","site_admin":false},"body":"Casting type is usually unwanted and potentially error prone. If var red = 0.0 is used above, this type cast won't be needed.","created_at":"2016-03-06T16:30:52Z","updated_at":"2016-03-06T16:30:52Z","html_url":"https://github.com/todem5/geometry/pull/13#discussion_r55143461","pull_request_url":"https://api.github.com/repos/todem5/geometry/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/todem5/geometry/pulls/comments/55143461"},"html":{"href":"https://github.com/todem5/geometry/pull/13#discussion_r55143461"},"pull_request":{"href":"https://api.github.com/repos/todem5/geometry/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/todem5/geometry/pulls/13","id":60958302,"html_url":"https://github.com/todem5/geometry/pull/13","diff_url":"https://github.com/todem5/geometry/pull/13.diff","patch_url":"https://github.com/todem5/geometry/pull/13.patch","issue_url":"https://api.github.com/repos/todem5/geometry/issues/13","number":13,"state":"open","locked":false,"title":"Simplify iteration","user":{"login":"todem5","id":11868686,"avatar_url":"https://avatars.githubusercontent.com/u/11868686?v=3","gravatar_id":"","url":"https://api.github.com/users/todem5","html_url":"https://github.com/todem5","followers_url":"https://api.github.com/users/todem5/followers","following_url":"https://api.github.com/users/todem5/following{/other_user}","gists_url":"https://api.github.com/users/todem5/gists{/gist_id}","starred_url":"https://api.github.com/users/todem5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/todem5/subscriptions","organizations_url":"https://api.github.com/users/todem5/orgs","repos_url":"https://api.github.com/users/todem5/repos","events_url":"https://api.github.com/users/todem5/events{/privacy}","received_events_url":"https://api.github.com/users/todem5/received_events","type":"User","site_admin":false},"body":"-Add Navigation Bar. Move \"Load\" button to its right side.  \r\n-Add \"Settings\" button to the left of navigation bar\r\n-On \"Settings\" open a modal dialog with navigation bar and \"Done\" button on its right side closing the dialog","created_at":"2016-02-27T17:46:51Z","updated_at":"2016-03-06T16:30:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ef1ffcf31b619bd21296484813b22afd10b6e64c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/todem5/geometry/pulls/13/commits","review_comments_url":"https://api.github.com/repos/todem5/geometry/pulls/13/comments","review_comment_url":"https://api.github.com/repos/todem5/geometry/pulls/comments{/number}","comments_url":"https://api.github.com/repos/todem5/geometry/issues/13/comments","statuses_url":"https://api.github.com/repos/todem5/geometry/statuses/206d1286caf3f263270dbba1b4cb949fda999320","head":{"label":"todem5:simplify_iteration","ref":"simplify_iteration","sha":"206d1286caf3f263270dbba1b4cb949fda999320","user":{"login":"todem5","id":11868686,"avatar_url":"https://avatars.githubusercontent.com/u/11868686?v=3","gravatar_id":"","url":"https://api.github.com/users/todem5","html_url":"https://github.com/todem5","followers_url":"https://api.github.com/users/todem5/followers","following_url":"https://api.github.com/users/todem5/following{/other_user}","gists_url":"https://api.github.com/users/todem5/gists{/gist_id}","starred_url":"https://api.github.com/users/todem5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/todem5/subscriptions","organizations_url":"https://api.github.com/users/todem5/orgs","repos_url":"https://api.github.com/users/todem5/repos","events_url":"https://api.github.com/users/todem5/events{/privacy}","received_events_url":"https://api.github.com/users/todem5/received_events","type":"User","site_admin":false},"repo":{"id":46900656,"name":"geometry","full_name":"todem5/geometry","owner":{"login":"todem5","id":11868686,"avatar_url":"https://avatars.githubusercontent.com/u/11868686?v=3","gravatar_id":"","url":"https://api.github.com/users/todem5","html_url":"https://github.com/todem5","followers_url":"https://api.github.com/users/todem5/followers","following_url":"https://api.github.com/users/todem5/following{/other_user}","gists_url":"https://api.github.com/users/todem5/gists{/gist_id}","starred_url":"https://api.github.com/users/todem5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/todem5/subscriptions","organizations_url":"https://api.github.com/users/todem5/orgs","repos_url":"https://api.github.com/users/todem5/repos","events_url":"https://api.github.com/users/todem5/events{/privacy}","received_events_url":"https://api.github.com/users/todem5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/todem5/geometry","description":"Shapes and OOP in Swift","fork":false,"url":"https://api.github.com/repos/todem5/geometry","forks_url":"https://api.github.com/repos/todem5/geometry/forks","keys_url":"https://api.github.com/repos/todem5/geometry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/todem5/geometry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/todem5/geometry/teams","hooks_url":"https://api.github.com/repos/todem5/geometry/hooks","issue_events_url":"https://api.github.com/repos/todem5/geometry/issues/events{/number}","events_url":"https://api.github.com/repos/todem5/geometry/events","assignees_url":"https://api.github.com/repos/todem5/geometry/assignees{/user}","branches_url":"https://api.github.com/repos/todem5/geometry/branches{/branch}","tags_url":"https://api.github.com/repos/todem5/geometry/tags","blobs_url":"https://api.github.com/repos/todem5/geometry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/todem5/geometry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/todem5/geometry/git/refs{/sha}","trees_url":"https://api.github.com/repos/todem5/geometry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/todem5/geometry/statuses/{sha}","languages_url":"https://api.github.com/repos/todem5/geometry/languages","stargazers_url":"https://api.github.com/repos/todem5/geometry/stargazers","contributors_url":"https://api.github.com/repos/todem5/geometry/contributors","subscribers_url":"https://api.github.com/repos/todem5/geometry/subscribers","subscription_url":"https://api.github.com/repos/todem5/geometry/subscription","commits_url":"https://api.github.com/repos/todem5/geometry/commits{/sha}","git_commits_url":"https://api.github.com/repos/todem5/geometry/git/commits{/sha}","comments_url":"https://api.github.com/repos/todem5/geometry/comments{/number}","issue_comment_url":"https://api.github.com/repos/todem5/geometry/issues/comments{/number}","contents_url":"https://api.github.com/repos/todem5/geometry/contents/{+path}","compare_url":"https://api.github.com/repos/todem5/geometry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/todem5/geometry/merges","archive_url":"https://api.github.com/repos/todem5/geometry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/todem5/geometry/downloads","issues_url":"https://api.github.com/repos/todem5/geometry/issues{/number}","pulls_url":"https://api.github.com/repos/todem5/geometry/pulls{/number}","milestones_url":"https://api.github.com/repos/todem5/geometry/milestones{/number}","notifications_url":"https://api.github.com/repos/todem5/geometry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/todem5/geometry/labels{/name}","releases_url":"https://api.github.com/repos/todem5/geometry/releases{/id}","deployments_url":"https://api.github.com/repos/todem5/geometry/deployments","created_at":"2015-11-26T03:01:00Z","updated_at":"2016-02-21T16:48:13Z","pushed_at":"2016-02-28T15:42:42Z","git_url":"git://github.com/todem5/geometry.git","ssh_url":"git@github.com:todem5/geometry.git","clone_url":"https://github.com/todem5/geometry.git","svn_url":"https://github.com/todem5/geometry","homepage":null,"size":135,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"todem5:master","ref":"master","sha":"9bc84c5b50c284d770623534643910b321d68c1d","user":{"login":"todem5","id":11868686,"avatar_url":"https://avatars.githubusercontent.com/u/11868686?v=3","gravatar_id":"","url":"https://api.github.com/users/todem5","html_url":"https://github.com/todem5","followers_url":"https://api.github.com/users/todem5/followers","following_url":"https://api.github.com/users/todem5/following{/other_user}","gists_url":"https://api.github.com/users/todem5/gists{/gist_id}","starred_url":"https://api.github.com/users/todem5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/todem5/subscriptions","organizations_url":"https://api.github.com/users/todem5/orgs","repos_url":"https://api.github.com/users/todem5/repos","events_url":"https://api.github.com/users/todem5/events{/privacy}","received_events_url":"https://api.github.com/users/todem5/received_events","type":"User","site_admin":false},"repo":{"id":46900656,"name":"geometry","full_name":"todem5/geometry","owner":{"login":"todem5","id":11868686,"avatar_url":"https://avatars.githubusercontent.com/u/11868686?v=3","gravatar_id":"","url":"https://api.github.com/users/todem5","html_url":"https://github.com/todem5","followers_url":"https://api.github.com/users/todem5/followers","following_url":"https://api.github.com/users/todem5/following{/other_user}","gists_url":"https://api.github.com/users/todem5/gists{/gist_id}","starred_url":"https://api.github.com/users/todem5/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/todem5/subscriptions","organizations_url":"https://api.github.com/users/todem5/orgs","repos_url":"https://api.github.com/users/todem5/repos","events_url":"https://api.github.com/users/todem5/events{/privacy}","received_events_url":"https://api.github.com/users/todem5/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/todem5/geometry","description":"Shapes and OOP in Swift","fork":false,"url":"https://api.github.com/repos/todem5/geometry","forks_url":"https://api.github.com/repos/todem5/geometry/forks","keys_url":"https://api.github.com/repos/todem5/geometry/keys{/key_id}","collaborators_url":"https://api.github.com/repos/todem5/geometry/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/todem5/geometry/teams","hooks_url":"https://api.github.com/repos/todem5/geometry/hooks","issue_events_url":"https://api.github.com/repos/todem5/geometry/issues/events{/number}","events_url":"https://api.github.com/repos/todem5/geometry/events","assignees_url":"https://api.github.com/repos/todem5/geometry/assignees{/user}","branches_url":"https://api.github.com/repos/todem5/geometry/branches{/branch}","tags_url":"https://api.github.com/repos/todem5/geometry/tags","blobs_url":"https://api.github.com/repos/todem5/geometry/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/todem5/geometry/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/todem5/geometry/git/refs{/sha}","trees_url":"https://api.github.com/repos/todem5/geometry/git/trees{/sha}","statuses_url":"https://api.github.com/repos/todem5/geometry/statuses/{sha}","languages_url":"https://api.github.com/repos/todem5/geometry/languages","stargazers_url":"https://api.github.com/repos/todem5/geometry/stargazers","contributors_url":"https://api.github.com/repos/todem5/geometry/contributors","subscribers_url":"https://api.github.com/repos/todem5/geometry/subscribers","subscription_url":"https://api.github.com/repos/todem5/geometry/subscription","commits_url":"https://api.github.com/repos/todem5/geometry/commits{/sha}","git_commits_url":"https://api.github.com/repos/todem5/geometry/git/commits{/sha}","comments_url":"https://api.github.com/repos/todem5/geometry/comments{/number}","issue_comment_url":"https://api.github.com/repos/todem5/geometry/issues/comments{/number}","contents_url":"https://api.github.com/repos/todem5/geometry/contents/{+path}","compare_url":"https://api.github.com/repos/todem5/geometry/compare/{base}...{head}","merges_url":"https://api.github.com/repos/todem5/geometry/merges","archive_url":"https://api.github.com/repos/todem5/geometry/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/todem5/geometry/downloads","issues_url":"https://api.github.com/repos/todem5/geometry/issues{/number}","pulls_url":"https://api.github.com/repos/todem5/geometry/pulls{/number}","milestones_url":"https://api.github.com/repos/todem5/geometry/milestones{/number}","notifications_url":"https://api.github.com/repos/todem5/geometry/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/todem5/geometry/labels{/name}","releases_url":"https://api.github.com/repos/todem5/geometry/releases{/id}","deployments_url":"https://api.github.com/repos/todem5/geometry/deployments","created_at":"2015-11-26T03:01:00Z","updated_at":"2016-02-21T16:48:13Z","pushed_at":"2016-02-28T15:42:42Z","git_url":"git://github.com/todem5/geometry.git","ssh_url":"git@github.com:todem5/geometry.git","clone_url":"https://github.com/todem5/geometry.git","svn_url":"https://github.com/todem5/geometry","homepage":null,"size":135,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/todem5/geometry/pulls/13"},"html":{"href":"https://github.com/todem5/geometry/pull/13"},"issue":{"href":"https://api.github.com/repos/todem5/geometry/issues/13"},"comments":{"href":"https://api.github.com/repos/todem5/geometry/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/todem5/geometry/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/todem5/geometry/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/todem5/geometry/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/todem5/geometry/statuses/206d1286caf3f263270dbba1b4cb949fda999320"}}}}