{"id":1058,"url":"https://github.com/joedaniels29/10Clock","last_synced_at":"2025-07-30T20:31:10.454Z","repository":{"id":56839908,"uuid":"67137557","full_name":"joedaniels29/10Clock","owner":"joedaniels29","description":"This Control is a beautiful time-of-day picker heavily inspired by the iOS 10 \"Bedtime\" timer.","archived":false,"fork":false,"pushed_at":"2020-05-25T05:18:30.000Z","size":1553,"stargazers_count":570,"open_issues_count":24,"forks_count":83,"subscribers_count":20,"default_branch":"master","last_synced_at":"2024-07-27T20:20:01.060Z","etag":null,"topics":[],"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/joedaniels29.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-01T14:18:27.000Z","updated_at":"2024-07-21T12:19:41.000Z","dependencies_parsed_at":"2022-08-29T05:01:09.397Z","dependency_job_id":null,"html_url":"https://github.com/joedaniels29/10Clock","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedaniels29%2F10Clock","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedaniels29%2F10Clock/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedaniels29%2F10Clock/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joedaniels29%2F10Clock/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joedaniels29","download_url":"https://codeload.github.com/joedaniels29/10Clock/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":215182678,"owners_count":15840917,"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":[],"created_at":"2024-01-05T20:15:38.023Z","updated_at":"2024-08-13T13:30:33.468Z","avatar_url":"https://github.com/joedaniels29.png","language":"Swift","funding_links":[],"categories":["Date \u0026 Time"],"sub_categories":["Getting Started","Other free courses","Linter"],"readme":"#10Clock\n![pods](https://img.shields.io/cocoapods/v/10Clock.svg?style=flat)\n![MIT](https://img.shields.io/cocoapods/v/10Clock.svg?style=flat)\n[![Build Status](https://travis-ci.org/joedaniels29/10Clock.svg?branch=master)](https://travis-ci.org/joedaniels29/10Clock)\n\nDark and Mysterious🕶             |  Light Colors🌻\n:-------------------------:|:-------------------------:\n![](/assets/computed/10Clock.png)  |  ![](/assets/computed/green.png)\n\n## Usage\n\nThe control itsself is `TenClock`. Add that to your view hierarchy, and constrain it to be square (thats kindof important).\n\nto set times, do:\n\n```swift\nself.tenClock.startDate = NSDate()\nself.tenClock.endDate = NSDate. //sometime later\n```\n\nmake the date today.\nthen, to get updates for when the date changes, adopt the protocol `TenClockDelegate`:\n\n```swift\nimport TenClock\nclass ViewController: UIViewController, TenClockDelegate {    \n    //Executed for every touch.\n    func timesUpdated(_ clock:TenClock, startDate:Date,  endDate:Date  ) -\u003e (){\n        //...\n    }\n\n    func timesChanged(clock:TenClock, startDate:NSDate,  endDate:NSDate  ) -\u003e (){\n        print(\"start at: \\(startDate), end at: \\(endDate)\")\n        self.beginTimeLabel.text = dateFormatter.stringFromDate(startDate)\n        self.endTimeLabel.text = dateFormatter.stringFromDate(endDate)\n    }\n    // ...\n```\n\n\n## Contributing\n\nThe goals of the project at this point should be testing for edgecase behavior and expanding customizability.\n\nPlease do contribute, open an issue if you have a question. Then  Submit a PR!  :D\n\n## Install via CocoaPods\n\n[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:\n\n```bash\n$ gem install cocoapods\n```\n\n\u003e CocoaPods 1.1.0+ is required to build 10Clock\n\nTo integrate 10Clock into your Xcode project using CocoaPods, specify it in your `Podfile`:\n\n```ruby\nsource 'https://github.com/CocoaPods/Specs.git'\nplatform :ios, '10.0'\nuse_frameworks!\n\ntarget '\u003cYour Target Name\u003e' do\n    pod '10Clock'\nend\n```\n\n\n\n## License\n\n10Clock is released under the MIT license. See LICENSE for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoedaniels29%2F10Clock","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoedaniels29%2F10Clock","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoedaniels29%2F10Clock/lists"}