{"id":18890393,"url":"https://github.com/workingdog/clocktimepicker","last_synced_at":"2025-10-29T11:34:47.095Z","repository":{"id":63921245,"uuid":"238385610","full_name":"workingDog/ClockTimePicker","owner":"workingDog","description":"ClockTimePicker is a SwiftUI view of a clock with draggable  hour and minutes hands for selecting the time of a date.","archived":false,"fork":false,"pushed_at":"2021-11-05T13:20:38.000Z","size":2165,"stargazers_count":11,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-12T01:02:48.698Z","etag":null,"topics":["clock","swiftui","time"],"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}},"created_at":"2020-02-05T06:44:13.000Z","updated_at":"2025-02-23T04:04:43.000Z","dependencies_parsed_at":"2023-01-14T14:15:20.564Z","dependency_job_id":null,"html_url":"https://github.com/workingDog/ClockTimePicker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workingDog%2FClockTimePicker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workingDog%2FClockTimePicker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workingDog%2FClockTimePicker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/workingDog%2FClockTimePicker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/workingDog","download_url":"https://codeload.github.com/workingDog/ClockTimePicker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248978587,"owners_count":21192817,"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","swiftui","time"],"created_at":"2024-11-08T07:55:24.911Z","updated_at":"2025-10-29T11:34:42.077Z","avatar_url":"https://github.com/workingDog.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# SwiftUI Clock Time Picker View\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\n## Clock with hands\n\n**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\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    \n    and change the options as desired.\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.\n\n\n## Installation\n\nInclude the files in the \"Sources/ClockTimePicker\" folder into your project or use [Swift Package Manager](https://github.com/apple/swift-package-manager). See [ClockPicker](https://github.com/workingDog/ClockPicker) for an example use.\n\n### Swift Package Manager\n\nCreate a Package.swift file for your project and add a dependency to:\n\n    dependencies: [\n      .package(url: \"https://github.com/workingDog/ClockTimePicker.git\", from: \"1.1.0\")\n    ]\n\nUsing Xcode\n\n    Select File \u003e Swift Packages \u003e Add Package Dependency...,\n    https://github.com/workingDog/ClockTimePicker.git\n\n\nThen in your code:\n\n    import ClockTimePicker\n      \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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkingdog%2Fclocktimepicker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fworkingdog%2Fclocktimepicker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fworkingdog%2Fclocktimepicker/lists"}