{"id":32324617,"url":"https://github.com/knottx/hexcolorext","last_synced_at":"2026-02-20T23:02:13.605Z","repository":{"id":56914496,"uuid":"336707315","full_name":"knottx/HexColorExt","owner":"knottx","description":"Hex Color Extension. available on CocoaPods.","archived":false,"fork":false,"pushed_at":"2021-03-27T06:15:20.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-17T22:22:44.774Z","etag":null,"topics":["cocoapods","extension","hex-codes","hexcolor","ios","pod","swift","uicolor","uicolor-extension"],"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/knottx.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":"2021-02-07T05:19:34.000Z","updated_at":"2021-04-06T12:24:40.000Z","dependencies_parsed_at":"2022-08-21T02:50:57.321Z","dependency_job_id":null,"html_url":"https://github.com/knottx/HexColorExt","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/knottx/HexColorExt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knottx%2FHexColorExt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knottx%2FHexColorExt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knottx%2FHexColorExt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knottx%2FHexColorExt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knottx","download_url":"https://codeload.github.com/knottx/HexColorExt/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knottx%2FHexColorExt/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29667119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T19:49:36.704Z","status":"ssl_error","status_checked_at":"2026-02-20T19:44:05.372Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["cocoapods","extension","hex-codes","hexcolor","ios","pod","swift","uicolor","uicolor-extension"],"created_at":"2025-10-23T13:07:22.422Z","updated_at":"2026-02-20T23:02:13.583Z","avatar_url":"https://github.com/knottx.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"**HexColorExt** is an extension for handling color in Swift.\n\n## 📲 Installation\n\n`HexColorExt` is available on [CocoaPods](https://cocoapods.org/pods/HexColorExt):\n\n```ruby\npod 'HexColorExt'\n```\n\n## 📝 How\n### Code Implementation\n```swift\nimport HexColorExt\n```\n### Generating UIColors\nWiith first \"#\" Hex Codes\n```swift\nlet orangeColor = UIColor(hex: \"#f60\")  // short hex\nlet blueColor = UIColor(hex: \"#0080FF\")\nlet blueColorWithAlpha = UIColor(hex: \"#0080ff80\")\n```\n\nWithout first \"#\" Hex Codes\n```swift\nlet orangeColor = UIColor(hex: \"f60\")  // short hex\nlet blueColor = UIColor(hex: \"0080FF\")\nlet blueColorWithAlpha = UIColor(hex: \"0080ff80\")\n```\n\nWith Alpha Component\n```swift\nlet orangeColor = UIColor(hex: \"f60\").withAlpha(0.8)\nlet blueColor = UIColor(hex: \"0080FF\").withAlpha(0.6)\n```\n\n### Generating Hex Strings from UIColor\n```swift\nlet blueColor = UIColor(hex: \"0080FF\")\nlet hex = blueColor.toHex()  // \"0080FF\"\n\nlet blueColorWithAlpha = UIColor(hex: \"0080ff80\")\nlet hexWithAlpha = blueColor.toHex(alpha: true)  // \"0080ff80\"\n```\n\n### Generating UIImage from UIColor\n```swift\nlet blueImage:UIImage = UIColor(hex: \"0080FF\").image()\n```\n\n## 📋 Requirements\n\n* iOS 10.0+\n* Xcode 11+\n* Swift 5.1+\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknottx%2Fhexcolorext","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknottx%2Fhexcolorext","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknottx%2Fhexcolorext/lists"}