{"id":13563976,"url":"https://github.com/LeonardoCardoso/BedtimeClock","last_synced_at":"2025-04-03T20:32:44.514Z","repository":{"id":146602237,"uuid":"85937570","full_name":"LeonardoCardoso/BedtimeClock","owner":"LeonardoCardoso","description":null,"archived":false,"fork":false,"pushed_at":"2018-06-25T11:02:54.000Z","size":10280,"stargazers_count":14,"open_issues_count":7,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-08-01T13:30:29.834Z","etag":null,"topics":["clock","clojure","objective-c","swift","ui"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeonardoCardoso.png","metadata":{"files":{"readme":"Readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-03-23T10:35:33.000Z","updated_at":"2022-04-08T04:38:46.000Z","dependencies_parsed_at":"2024-01-14T04:05:19.221Z","dependency_job_id":null,"html_url":"https://github.com/LeonardoCardoso/BedtimeClock","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FBedtimeClock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FBedtimeClock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FBedtimeClock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeonardoCardoso%2FBedtimeClock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeonardoCardoso","download_url":"https://codeload.github.com/LeonardoCardoso/BedtimeClock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223030821,"owners_count":17076510,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clock","clojure","objective-c","swift","ui"],"created_at":"2024-08-01T13:01:25.149Z","updated_at":"2024-11-04T16:31:44.545Z","avatar_url":"https://github.com/LeonardoCardoso.png","language":"Swift","funding_links":[],"categories":["Swift"],"sub_categories":[],"readme":"## BedtimeClock\n\nMy sketches for iOS 10 bedtime clock. **Unfinished**.\n\n![dragging-around.gif](Images/dragging-around.gif)\n\n### Init\n\n```swift\n// Time jumps at each five minutes\n\nlet bedtimeClockView: BedtimeClockView = BedtimeClockView(\n    frame: CGRect(x: 0, y: 0, width: 320, height: 320),\n    startTimeInMinutes: 126, // Hour: 02:06, will display 02:05\n    endTimeInMinutes: 552 // Hour: 09:12, will display 09:10\n)\n```\n\n### Observer\n\nWatch the changes using this snippet:\n\n```swift\nself.bedtimeClockView.observer = { start, end, durationInMinutes in\n\n    print(start, end, durationInMinutes) // Will print: 01:00, 09:00, 480\n\n}\n```\n\n### Palette\n\nYou can change the colors whenever you want. Let's say if you want to give an impression of enabling and disabling the clock. To do so, use this function:\n\n```swift\n// Change nil for the color of your choice\n \nself.bedtimeClockView.changePalette(\n    trackBackgroundColor = nil,\n    centerBackgroundColor = nil,\n    wakeBackgroundColor = nil,\n    wakeColor = nil,\n    sleepBackgroundColor = nil,\n    sleepColor = nil,\n    trackColor = nil,\n    numberColor = nil,\n    thickPointerColor = nil,\n    thinPointerColor = nil,\n    centerLabelColor = nil\n)\n```\nSee below the full color reference:\n\n![palette.jpeg](Images/palette.jpeg)\n\n## License\n\nBedtimeClock is released under the MIT license. See [LICENSE](https://github.com/leocardz.com/BedtimeClock/blob/master/LICENSE) for details.\n\n### Follow me for the latest updates\n\u003ca href=\"https://goo.gl/UC8B8o\"\u003e\u003cimg src=\"https://i.imgur.com/pac7UMq.png/\" width=\"179\" height=\"26\"\u003e\u003c/a\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeonardoCardoso%2FBedtimeClock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeonardoCardoso%2FBedtimeClock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeonardoCardoso%2FBedtimeClock/lists"}