{"id":15066993,"url":"https://github.com/adventam10/amclockview","last_synced_at":"2026-02-27T22:43:07.820Z","repository":{"id":56900661,"uuid":"116493337","full_name":"adventam10/AMClockView","owner":"adventam10","description":"AMClockView is a view can select time.","archived":false,"fork":false,"pushed_at":"2019-10-14T11:32:46.000Z","size":179,"stargazers_count":60,"open_issues_count":3,"forks_count":10,"subscribers_count":9,"default_branch":"master","last_synced_at":"2024-10-03T09:22:18.883Z","etag":null,"topics":["clock","ios","swift","swift4"],"latest_commit_sha":null,"homepage":"https://qiita.com/am10/items/0222e6966d58062d2eca","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/adventam10.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}},"created_at":"2018-01-06T15:23:37.000Z","updated_at":"2023-08-10T04:30:22.000Z","dependencies_parsed_at":"2022-08-20T18:20:38.106Z","dependency_job_id":null,"html_url":"https://github.com/adventam10/AMClockView","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adventam10%2FAMClockView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adventam10%2FAMClockView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adventam10%2FAMClockView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adventam10%2FAMClockView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adventam10","download_url":"https://codeload.github.com/adventam10/AMClockView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248229316,"owners_count":21068875,"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","ios","swift","swift4"],"created_at":"2024-09-25T01:14:51.399Z","updated_at":"2026-02-27T22:43:07.781Z","avatar_url":"https://github.com/adventam10.png","language":"Swift","readme":"# AMClockView\n\n![Pod Platform](https://img.shields.io/cocoapods/p/AMClockView.svg?style=flat)\n![Pod License](https://img.shields.io/cocoapods/l/AMClockView.svg?style=flat)\n[![Pod Version](https://img.shields.io/cocoapods/v/AMClockView.svg?style=flat)](http://cocoapods.org/pods/AMClockView)\n[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Swift Package Manager compatible](https://img.shields.io/badge/Swift%20Package%20Manager-compatible-brightgreen.svg)](https://github.com/apple/swift-package-manager)\n\n`AMClockView` is a view can select time.\n\n## Demo\n\n![amclock](https://user-images.githubusercontent.com/34936885/34641894-0adbf71a-f34e-11e7-892a-86e5f3e51256.gif)\n\n## Usage\n\nCreate clockView.\n\n```swift\nlet clockView = AMClockView(frame: view.bounds)\n\n// customize here\n\nclockView.delegate = self\nview.addSubview(clockView)\n```\n\nConform to the protocol in the class implementation.\n\n```swift\nfunc clockView(_ clockView: AMClockView, didChangeDate date: Date) { \n    // use selected date here\n}\n```\n\nThe hour hand moves when you dragged inside of central circle.\n\nThe minute hand moves when you draged outside of central circle.\n\n### Customization\n`AMClockView` can be customized via the following properties.\n\n```swift\n@IBInspectable public var clockBorderLineWidth: CGFloat = 5.0\n@IBInspectable public var smallClockIndexWidth: CGFloat = 1.0\n@IBInspectable public var clockIndexWidth: CGFloat = 2.0\n@IBInspectable public var hourHandWidth: CGFloat = 5.0\n@IBInspectable public var minuteHandWidth: CGFloat = 3.0\n@IBInspectable public var clockBorderLineColor: UIColor = .black\n@IBInspectable public var centerCircleLineColor: UIColor = .darkGray\n@IBInspectable public var hourHandColor: UIColor = .black\n@IBInspectable public var minuteHandColor: UIColor = .black\n@IBInspectable public var selectedTimeLabelTextColor: UIColor = .black\n@IBInspectable public var timeLabelTextColor: UIColor = .black\n@IBInspectable public var smallClockIndexColor: UIColor = .black\n@IBInspectable public var clockIndexColor: UIColor = .black\n@IBInspectable public var clockColor: UIColor = .clear\n@IBInspectable public var clockImage: UIImage?\n@IBInspectable public var minuteHandImage: UIImage?\n@IBInspectable public var hourHandImage: UIImage?\n@IBInspectable public var isShowSelectedTime: Bool = false\npublic var clockType = AMCVClockType.arabic\npublic var timeZone: TimeZone?  // default is TimeZone.current\npublic var selectedDate: Date?\n```\n\n![clock](https://user-images.githubusercontent.com/34936885/66701955-20c3c680-ed3d-11e9-8e17-03544afab1bf.png)\n\n## Installation\n\n### CocoaPods\n\nAdd this to your Podfile.\n\n```ogdl\npod 'AMClockView'\n```\n\n### Carthage\n\nAdd this to your Cartfile.\n\n```ogdl\ngithub \"adventam10/AMClockView\"\n```\n\n## License\n\nMIT\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadventam10%2Famclockview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadventam10%2Famclockview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadventam10%2Famclockview/lists"}