{"id":18251352,"url":"https://github.com/crazytonyli/colory","last_synced_at":"2025-07-03T07:36:50.309Z","repository":{"id":41176391,"uuid":"104339613","full_name":"crazytonyli/Colory","owner":"crazytonyli","description":"A `UIControl` for picking color from HSB color palette.","archived":false,"fork":false,"pushed_at":"2018-09-17T07:09:27.000Z","size":2246,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-20T15:22:18.111Z","etag":null,"topics":["carthage","cocoapods","color","hsb","hsb-color-palette","ios","picker","rgb","swift"],"latest_commit_sha":null,"homepage":null,"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/crazytonyli.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":"2017-09-21T11:28:09.000Z","updated_at":"2024-06-18T03:43:41.000Z","dependencies_parsed_at":"2022-09-03T12:22:59.311Z","dependency_job_id":null,"html_url":"https://github.com/crazytonyli/Colory","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazytonyli%2FColory","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazytonyli%2FColory/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazytonyli%2FColory/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazytonyli%2FColory/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazytonyli","download_url":"https://codeload.github.com/crazytonyli/Colory/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247209525,"owners_count":20901801,"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":["carthage","cocoapods","color","hsb","hsb-color-palette","ios","picker","rgb","swift"],"created_at":"2024-11-05T09:47:21.948Z","updated_at":"2025-04-04T16:32:10.861Z","avatar_url":"https://github.com/crazytonyli.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Colory\n\n![Swift 3, 4](https://img.shields.io/badge/Swift-3%2C%204-orange.svg)\n[![Build Status](https://img.shields.io/travis/crazytonyli/Colory.svg)](https://travis-ci.org/crazytonyli/Colory)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/Colory.svg)](https://cocoapods.org/pods/Colory)\n![Carthage](https://img.shields.io/badge/carthage-compatible-blue.svg)\n[![License](https://img.shields.io/badge/license-MIT-lightgrey.svg)](https://github.com/crazytonyli/Colory/blob/master/LICENSE)\n\nA `UIControl` for picking color from HSB color palette.\n\n![Screenshot](Example/Colory.gif)\n\nP.S. Gradient looks way smoother on device than this gif.\n\n## Installation\n\n### CocoaPods\n\nTo install Colory using [CocoaPods](https://cocoapods.org), add following line to your Podfile:\n\n    pod 'Colory'\n\n### Carthage\n\nTo install Colory using [Carthage](https://github.com/Carthage/Carthage), add following line to your Cartfile:\n\n    github \"crazytonyli/Colory\"\n\n## Usage\n\nColory has very simple API.\n\nRegister action with `valueChanged` event to receive picked color changes.\n\n```swift\nlet pickerView = ColorPickerView()\npickerView.addTarget(self, action: #selector(colorChanged(_:)), for: .valueChanged)\n```\n\n\nUse `color` property to get and set currently picked color.\n\n```swift\n@objc func colorChanged(_ pickerView: ColorPickerView) {\n    update(with: pickerView.color)\n}\n```\n\nUse `layoutMargins` to customize palette margins.\n```swift\npickerView.layoutMargins = UIEdgeInsets(top: pickerView.layoutMargins.top,\n                                        left: 20,\n                                        bottom: pickerView.layoutMargins.bottom,\n                                        right: 20)\n```\n\n## LICENSE\n\nThis library is released under [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazytonyli%2Fcolory","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazytonyli%2Fcolory","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazytonyli%2Fcolory/lists"}