{"id":13751815,"url":"https://github.com/workingDog/ClockPicker","last_synced_at":"2025-05-09T18:32:31.582Z","repository":{"id":151934703,"uuid":"222819421","full_name":"workingDog/ClockPicker","owner":"workingDog","description":"SwiftUI Clock Time Picker","archived":false,"fork":false,"pushed_at":"2021-11-05T13:21:30.000Z","size":4620,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-28T03:43:13.734Z","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/workingDog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"License.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-11-20T00:53:30.000Z","updated_at":"2023-12-24T07:01:15.000Z","dependencies_parsed_at":"2023-05-16T16:15:37.908Z","dependency_job_id":null,"html_url":"https://github.com/workingDog/ClockPicker","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/workingDog%2FClockPicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workingDog%2FClockPicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workingDog%2FClockPicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workingDog%2FClockPicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workingDog","download_url":"https://codeload.github.com/workingDog/ClockPicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":213786219,"owners_count":15638379,"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-08-03T09:00:55.220Z","updated_at":"2024-08-03T09:02:46.469Z","avatar_url":"https://github.com/workingDog.png","language":"Swift","funding_links":[],"categories":["UI","🌎 by the community"],"sub_categories":["Clock"],"readme":"\n# SwiftUI Clock Time Picker example\n\n\u003cp float=\"left\"\u003e\n  \u003cimg src=\"Images/picture1.png\"  width=\"200\"  height=\"200\" /\u003e\n  \u003cimg src=\"Images/picture3.png\"  width=\"200\"  height=\"200\" /\u003e \n  \u003cimg src=\"Images/picture4.png\"  width=\"200\"  height=\"200\" /\u003e\n  \u003cimg src=\"Images/picture5.png\"  width=\"200\"  height=\"200\" /\u003e\n\u003c/p\u003e\n\nAn exampe of using [**ClockTimePicker**](https://github.com/workingDog/ClockTimePicker) library.\n\n## Clock with hands\n\n[**ClockTimePicker**](https://github.com/workingDog/ClockTimePicker) is a SwiftUI view that displays a clock with the hour and minutes hands.\nThese hands can be dragged around the clock face to select the desired hour and minutes of your date.\n\nSee **ContenView.swift** for how to use it in your code.\n\nThe main element is **ClockPickerView.swift**.\n\nUse it like a *DatePicker*, such as:\n\n    @State var date = Date()\n    \n    ClockPickerView(date: $date)\n\nAs the clock hands are changed, the *date* hour and minutes are updated.\n\nTo customise the looks of the clock, use \n\n    @ObservedObject var options = ClockLooks()\n    \nand change the options as desired, see  *ContenView.swift*\n    \n## Clock without hands\n\n**ClockTimePicker** can also display a clock without hands, more suited to iPad and Mac. To display it set the options as:\n\n    options.withHands = false    \n\nTo pick the hour and minutes, tap on the center **hour : minute** to display either the hours or the minutes set.\n\nNote: adjust the sizes and colors using **options** to suit your device, see  *ContenView.swift*\n\n## Screenshots\n\n![im01](Images/picture1.png)  ![im03](Images/picture3.png) \n\n\n![im04](Images/picture4.png)   ![im05](Images/picture5.png)  \n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FworkingDog%2FClockPicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FworkingDog%2FClockPicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FworkingDog%2FClockPicker/lists"}