{"action":"created","comment":{"url":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/comments/42751017","id":42751017,"diff_hunk":"@@ -26,13 +31,17 @@ class DaySymbolsView: UIView {\n   }\n \n   func configure() {\n-\n-    let daySymbols = NSCalendar.currentCalendar()\n-      .shortWeekdaySymbols\n+    let daySymbols = calendar.shortWeekdaySymbols\n       .map { String($0.characters.first!)}\n+    let weekendMask = [true] + [Bool](count: 5, repeatedValue: false) + [true]\n+    var weekDays = Array(Zip2Sequence(daySymbols, weekendMask))\n+\n+    let offset = calendar.firstWeekday - 1\n+    weekDays.shift(offset)","path":"Source/Header/DaySymbolsView.swift","position":27,"original_position":27,"commit_id":"e3c6a5fd994204dc67baddf393ae8ccc235239e5","original_commit_id":"2fa02df52175392138a89b67253d9d4332c55f9b","user":{"login":"zenangst","id":57446,"avatar_url":"https://avatars.githubusercontent.com/u/57446?v=3","gravatar_id":"","url":"https://api.github.com/users/zenangst","html_url":"https://github.com/zenangst","followers_url":"https://api.github.com/users/zenangst/followers","following_url":"https://api.github.com/users/zenangst/following{/other_user}","gists_url":"https://api.github.com/users/zenangst/gists{/gist_id}","starred_url":"https://api.github.com/users/zenangst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zenangst/subscriptions","organizations_url":"https://api.github.com/users/zenangst/orgs","repos_url":"https://api.github.com/users/zenangst/repos","events_url":"https://api.github.com/users/zenangst/events{/privacy}","received_events_url":"https://api.github.com/users/zenangst/received_events","type":"User","site_admin":false},"body":"But I guess it sort of describes what it does","created_at":"2015-10-22T14:01:30Z","updated_at":"2015-10-22T14:01:30Z","html_url":"https://github.com/hyperoslo/CalendarKit/pull/2#discussion_r42751017","pull_request_url":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/comments/42751017"},"html":{"href":"https://github.com/hyperoslo/CalendarKit/pull/2#discussion_r42751017"},"pull_request":{"href":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/2","id":48444306,"html_url":"https://github.com/hyperoslo/CalendarKit/pull/2","diff_url":"https://github.com/hyperoslo/CalendarKit/pull/2.diff","patch_url":"https://github.com/hyperoslo/CalendarKit/pull/2.patch","issue_url":"https://api.github.com/repos/hyperoslo/CalendarKit/issues/2","number":2,"state":"open","locked":false,"title":"Demo + integration","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":"Integrating components together, focusing on the header view.\r\nInfinite header scrolling. Dates are \"real\", not mocks.\r\nRegion-based day symbols and calendar settings (if you use calendar starting from sunday, it will show it so)\r\nDraft of scrolling engine\r\nCurrent date label with animation.\r\nLayout for portrait/landscape.\r\n\r\nHow it looks right now:\r\n![simulator screen shot 22 oct 2015 15 44 29](https://cloud.githubusercontent.com/assets/8013017/10666759/ef60c3e0-78d3-11e5-9264-53d7cc7aa380.png)\r\n![simulator screen shot 22 oct 2015 15 44 39](https://cloud.githubusercontent.com/assets/8013017/10666760/ef63345e-78d3-11e5-81a4-705a5af5d7a8.png)\r\n\r\n\r\nAnd it has no bugs which Apple calendar has:\r\n![screen shot 2015-10-22 at 13 17 11](https://cloud.githubusercontent.com/assets/8013017/10663890/57a5f840-78bf-11e5-8c6f-7e86a0e0df5b.png)","created_at":"2015-10-22T11:06:25Z","updated_at":"2015-10-22T14:01:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fee7be94c02095419983b8a9d1c2ea5db4405ebc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/2/commits","review_comments_url":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/2/comments","review_comment_url":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hyperoslo/CalendarKit/issues/2/comments","statuses_url":"https://api.github.com/repos/hyperoslo/CalendarKit/statuses/e3c6a5fd994204dc67baddf393ae8ccc235239e5","head":{"label":"hyperoslo:demo-integration","ref":"demo-integration","sha":"e3c6a5fd994204dc67baddf393ae8ccc235239e5","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":44537782,"name":"CalendarKit","full_name":"hyperoslo/CalendarKit","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/CalendarKit","description":"","fork":false,"url":"https://api.github.com/repos/hyperoslo/CalendarKit","forks_url":"https://api.github.com/repos/hyperoslo/CalendarKit/forks","keys_url":"https://api.github.com/repos/hyperoslo/CalendarKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/CalendarKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/CalendarKit/teams","hooks_url":"https://api.github.com/repos/hyperoslo/CalendarKit/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/CalendarKit/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/CalendarKit/events","assignees_url":"https://api.github.com/repos/hyperoslo/CalendarKit/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/CalendarKit/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/CalendarKit/tags","blobs_url":"https://api.github.com/repos/hyperoslo/CalendarKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/CalendarKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/CalendarKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/CalendarKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/CalendarKit/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/CalendarKit/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/CalendarKit/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/CalendarKit/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/CalendarKit/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/CalendarKit/subscription","commits_url":"https://api.github.com/repos/hyperoslo/CalendarKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/CalendarKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/CalendarKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/CalendarKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/CalendarKit/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/CalendarKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/CalendarKit/merges","archive_url":"https://api.github.com/repos/hyperoslo/CalendarKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/CalendarKit/downloads","issues_url":"https://api.github.com/repos/hyperoslo/CalendarKit/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/CalendarKit/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/CalendarKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/CalendarKit/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/CalendarKit/releases{/id}","created_at":"2015-10-19T13:45:05Z","updated_at":"2015-10-22T11:01:28Z","pushed_at":"2015-10-22T14:01:22Z","git_url":"git://github.com/hyperoslo/CalendarKit.git","ssh_url":"git@github.com:hyperoslo/CalendarKit.git","clone_url":"https://github.com/hyperoslo/CalendarKit.git","svn_url":"https://github.com/hyperoslo/CalendarKit","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"hyperoslo:master","ref":"master","sha":"945e1c0496f649c6735cf8818047d69fdc97203f","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":44537782,"name":"CalendarKit","full_name":"hyperoslo/CalendarKit","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/CalendarKit","description":"","fork":false,"url":"https://api.github.com/repos/hyperoslo/CalendarKit","forks_url":"https://api.github.com/repos/hyperoslo/CalendarKit/forks","keys_url":"https://api.github.com/repos/hyperoslo/CalendarKit/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hyperoslo/CalendarKit/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hyperoslo/CalendarKit/teams","hooks_url":"https://api.github.com/repos/hyperoslo/CalendarKit/hooks","issue_events_url":"https://api.github.com/repos/hyperoslo/CalendarKit/issues/events{/number}","events_url":"https://api.github.com/repos/hyperoslo/CalendarKit/events","assignees_url":"https://api.github.com/repos/hyperoslo/CalendarKit/assignees{/user}","branches_url":"https://api.github.com/repos/hyperoslo/CalendarKit/branches{/branch}","tags_url":"https://api.github.com/repos/hyperoslo/CalendarKit/tags","blobs_url":"https://api.github.com/repos/hyperoslo/CalendarKit/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hyperoslo/CalendarKit/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hyperoslo/CalendarKit/git/refs{/sha}","trees_url":"https://api.github.com/repos/hyperoslo/CalendarKit/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hyperoslo/CalendarKit/statuses/{sha}","languages_url":"https://api.github.com/repos/hyperoslo/CalendarKit/languages","stargazers_url":"https://api.github.com/repos/hyperoslo/CalendarKit/stargazers","contributors_url":"https://api.github.com/repos/hyperoslo/CalendarKit/contributors","subscribers_url":"https://api.github.com/repos/hyperoslo/CalendarKit/subscribers","subscription_url":"https://api.github.com/repos/hyperoslo/CalendarKit/subscription","commits_url":"https://api.github.com/repos/hyperoslo/CalendarKit/commits{/sha}","git_commits_url":"https://api.github.com/repos/hyperoslo/CalendarKit/git/commits{/sha}","comments_url":"https://api.github.com/repos/hyperoslo/CalendarKit/comments{/number}","issue_comment_url":"https://api.github.com/repos/hyperoslo/CalendarKit/issues/comments{/number}","contents_url":"https://api.github.com/repos/hyperoslo/CalendarKit/contents/{+path}","compare_url":"https://api.github.com/repos/hyperoslo/CalendarKit/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hyperoslo/CalendarKit/merges","archive_url":"https://api.github.com/repos/hyperoslo/CalendarKit/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hyperoslo/CalendarKit/downloads","issues_url":"https://api.github.com/repos/hyperoslo/CalendarKit/issues{/number}","pulls_url":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls{/number}","milestones_url":"https://api.github.com/repos/hyperoslo/CalendarKit/milestones{/number}","notifications_url":"https://api.github.com/repos/hyperoslo/CalendarKit/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hyperoslo/CalendarKit/labels{/name}","releases_url":"https://api.github.com/repos/hyperoslo/CalendarKit/releases{/id}","created_at":"2015-10-19T13:45:05Z","updated_at":"2015-10-22T11:01:28Z","pushed_at":"2015-10-22T14:01:22Z","git_url":"git://github.com/hyperoslo/CalendarKit.git","ssh_url":"git@github.com:hyperoslo/CalendarKit.git","clone_url":"https://github.com/hyperoslo/CalendarKit.git","svn_url":"https://github.com/hyperoslo/CalendarKit","homepage":null,"size":0,"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":1,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/2"},"html":{"href":"https://github.com/hyperoslo/CalendarKit/pull/2"},"issue":{"href":"https://api.github.com/repos/hyperoslo/CalendarKit/issues/2"},"comments":{"href":"https://api.github.com/repos/hyperoslo/CalendarKit/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hyperoslo/CalendarKit/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/hyperoslo/CalendarKit/statuses/e3c6a5fd994204dc67baddf393ae8ccc235239e5"}}}}