{"id":16853136,"url":"https://github.com/devxoul/swiftycolor","last_synced_at":"2025-03-17T05:32:11.917Z","repository":{"id":25765236,"uuid":"29203409","full_name":"devxoul/SwiftyColor","owner":"devxoul","description":"🎨 The most sexy way to use colors in Swift.","archived":false,"fork":false,"pushed_at":"2020-03-21T23:27:11.000Z","size":35,"stargazers_count":121,"open_issues_count":1,"forks_count":7,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-03-12T19:47:19.467Z","etag":null,"topics":["color","swift"],"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/devxoul.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":"2015-01-13T18:04:44.000Z","updated_at":"2024-12-30T08:26:52.000Z","dependencies_parsed_at":"2022-07-10T14:46:45.374Z","dependency_job_id":null,"html_url":"https://github.com/devxoul/SwiftyColor","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FSwiftyColor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FSwiftyColor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FSwiftyColor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devxoul%2FSwiftyColor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devxoul","download_url":"https://codeload.github.com/devxoul/SwiftyColor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243846976,"owners_count":20357294,"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":["color","swift"],"created_at":"2024-10-13T13:49:53.794Z","updated_at":"2025-03-17T05:32:11.197Z","avatar_url":"https://github.com/devxoul.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"SwiftyColor\n===========\n\n![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)\n[![CocoaPods](http://img.shields.io/cocoapods/v/SwiftyColor.svg?style=flat)](http://cocoapods.org/?q=name%3ASwiftyColor%20author%3Adevxoul)\n[![CI](https://github.com/devxoul/SwiftyColor/workflows/CI/badge.svg)](http://github.com/devxoul/SwiftyColor/actions)\n\nThe most sexy way to use colors in Swift. Both compatible with iOS and macOS.\n\nColor from Hex\n--------------\n\n```swift\nlet color = 0x123456.color\n```\n\nAlpha Operator\n--------------\n\nUse infix operator `~`.\n\n```swift\nlet transparent = 0x123456.color ~ 50%\nlet red = UIColor.red ~ 10%\nlet float = UIColor.blue ~ 0.5 // == 50%\n```\n\nPercent Operator\n----------------\n\n```swift\nlet view = UIView()\nview.alpha = 30% // == 0.3\n```\n\nLicense\n-------\n\nSwiftyColor is under MIT license. See LICENSE file for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxoul%2Fswiftycolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevxoul%2Fswiftycolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevxoul%2Fswiftycolor/lists"}