{"action":"created","comment":{"url":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls/comments/32716851","id":32716851,"diff_hunk":"@@ -261,9 +287,13 @@ import QuartzCore\n         offLabel.textColor = UIColor.lightGrayColor()\n         offLabel.font = UIFont.systemFontOfSize(12)\n         backgroundView.addSubview(offLabel)\n+\n+        self.textLabel = UILabel()\n+        textLabel.textColor = UIColor.grayColor()\n+        textLabel.font = UIFont.systemFontOfSize(12)","path":"SevenSwitch.swift","position":63,"original_position":63,"commit_id":"1687d30e36d7992485eae8421d0666c0841b9eb4","original_commit_id":"1687d30e36d7992485eae8421d0666c0841b9eb4","user":{"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},"body":"Could be changed to `textLabel.font = .systemFontOfSize(12)`","created_at":"2015-06-18T10:31:12Z","updated_at":"2015-06-18T10:31:12Z","html_url":"https://github.com/hyperoslo/SevenSwitch/pull/1#discussion_r32716851","pull_request_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls/comments/32716851"},"html":{"href":"https://github.com/hyperoslo/SevenSwitch/pull/1#discussion_r32716851"},"pull_request":{"href":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls/1","id":37988378,"html_url":"https://github.com/hyperoslo/SevenSwitch/pull/1","diff_url":"https://github.com/hyperoslo/SevenSwitch/pull/1.diff","patch_url":"https://github.com/hyperoslo/SevenSwitch/pull/1.patch","issue_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/issues/1","number":1,"state":"open","locked":false,"title":"Feature/text on a knob","user":{"login":"richardoti","id":8013017,"avatar_url":"https://avatars.githubusercontent.com/u/8013017?v=3","gravatar_id":"","url":"https://api.github.com/users/richardoti","html_url":"https://github.com/richardoti","followers_url":"https://api.github.com/users/richardoti/followers","following_url":"https://api.github.com/users/richardoti/following{/other_user}","gists_url":"https://api.github.com/users/richardoti/gists{/gist_id}","starred_url":"https://api.github.com/users/richardoti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/richardoti/subscriptions","organizations_url":"https://api.github.com/users/richardoti/orgs","repos_url":"https://api.github.com/users/richardoti/repos","events_url":"https://api.github.com/users/richardoti/events{/privacy}","received_events_url":"https://api.github.com/users/richardoti/received_events","type":"User","site_admin":false},"body":"So, I forked the library and added custom text on the knob functionality to it.\r\nHow to use: \r\nCreate the switch\r\nset the text by: mySwitch.knobText = \"HyperText\"\r\n\r\nThe knob will adjust its width automatically.\r\nNote: switch width has to be bigger than the width of the knob. (pay attention to the size of the text you set to it)\r\n\r\n@vadymmarkov, @zenangst any thoughts on this?","created_at":"2015-06-18T09:44:38Z","updated_at":"2015-06-18T10:31:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f5f4104f36b0e25eec571a78ffb3212dd747ec91","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls/1/commits","review_comments_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls/1/comments","review_comment_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/issues/1/comments","statuses_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/statuses/1687d30e36d7992485eae8421d0666c0841b9eb4","head":{"label":"hyperoslo:feature/text-on-a-knob","ref":"feature/text-on-a-knob","sha":"1687d30e36d7992485eae8421d0666c0841b9eb4","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":37642987,"name":"SevenSwitch","full_name":"hyperoslo/SevenSwitch","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/SevenSwitch","description":"iOS7 style drop in replacement for UISwitch","fork":true,"url":"https://api.github.com/repos/hyperoslo/SevenSwitch","forks_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/forks","keys_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/teams","hooks_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/events","assignees_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/tags","blobs_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/subscription","commits_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/merges","archive_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/downloads","issues_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/releases{/id}","created_at":"2015-06-18T06:55:00Z","updated_at":"2015-06-18T06:55:00Z","pushed_at":"2015-06-18T09:44:39Z","git_url":"git://github.com/hyperoslo/SevenSwitch.git","ssh_url":"git@github.com:hyperoslo/SevenSwitch.git","clone_url":"https://github.com/hyperoslo/SevenSwitch.git","svn_url":"https://github.com/hyperoslo/SevenSwitch","homepage":"","size":1131,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"hyperoslo:master","ref":"master","sha":"e9a55d4d198891fe4c7a7c369c2cdb63bbdb9dfb","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":37642987,"name":"SevenSwitch","full_name":"hyperoslo/SevenSwitch","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/SevenSwitch","description":"iOS7 style drop in replacement for UISwitch","fork":true,"url":"https://api.github.com/repos/hyperoslo/SevenSwitch","forks_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/forks","keys_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/teams","hooks_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/events","assignees_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/tags","blobs_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/subscription","commits_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/merges","archive_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/downloads","issues_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/SevenSwitch/releases{/id}","created_at":"2015-06-18T06:55:00Z","updated_at":"2015-06-18T06:55:00Z","pushed_at":"2015-06-18T09:44:39Z","git_url":"git://github.com/hyperoslo/SevenSwitch.git","ssh_url":"git@github.com:hyperoslo/SevenSwitch.git","clone_url":"https://github.com/hyperoslo/SevenSwitch.git","svn_url":"https://github.com/hyperoslo/SevenSwitch","homepage":"","size":1131,"stargazers_count":0,"watchers_count":0,"language":"Swift","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"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/hyperoslo/SevenSwitch/pulls/1"},"html":{"href":"https://github.com/hyperoslo/SevenSwitch/pull/1"},"issue":{"href":"https://api.github.com/repos/hyperoslo/SevenSwitch/issues/1"},"comments":{"href":"https://api.github.com/repos/hyperoslo/SevenSwitch/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyperoslo/SevenSwitch/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/hyperoslo/SevenSwitch/statuses/1687d30e36d7992485eae8421d0666c0841b9eb4"}}}}