{"id":16829937,"url":"https://github.com/mxcl/uiimagewithcolor","last_synced_at":"2025-03-17T04:32:08.650Z","repository":{"id":13745213,"uuid":"16439629","full_name":"mxcl/UIImageWithColor","owner":"mxcl","description":"[UIImage imageWithColor]","archived":false,"fork":false,"pushed_at":"2024-02-22T11:50:26.000Z","size":9,"stargazers_count":79,"open_issues_count":0,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-09T08:15:39.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mxcl.png","metadata":{"funding":{"github":"mxcl","patreon":"mxcl"},"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-02-01T18:22:22.000Z","updated_at":"2024-06-19T05:27:38.040Z","dependencies_parsed_at":"2024-06-19T05:27:36.222Z","dependency_job_id":"6150b393-6d5a-4990-8c93-6204c53cc50a","html_url":"https://github.com/mxcl/UIImageWithColor","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/mxcl%2FUIImageWithColor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcl%2FUIImageWithColor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcl%2FUIImageWithColor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcl%2FUIImageWithColor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxcl","download_url":"https://codeload.github.com/mxcl/UIImageWithColor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221671958,"owners_count":16861337,"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":[],"created_at":"2024-10-13T11:36:39.232Z","updated_at":"2024-10-27T11:57:24.563Z","avatar_url":"https://github.com/mxcl.png","language":"Objective-C","funding_links":["https://github.com/sponsors/mxcl","https://patreon.com/mxcl"],"categories":[],"sub_categories":[],"readme":"#UIImage+ImageWithColor\n\n[![Version](https://img.shields.io/cocoapods/v/UIImage+ImageWithColor.svg?style=flat)](http://cocoadocs.org/docsets/UIImage+ImageWithColor)\n[![License](https://img.shields.io/cocoapods/l/UIImage+ImageWithColor.svg?style=flat)](http://cocoadocs.org/docsets/UIImage+ImageWithColor)\n[![Platform](https://img.shields.io/cocoapods/p/UIImage+ImageWithColor.svg?style=flat)](http://cocoadocs.org/docsets/UIImage+ImageWithColor)\n\n**Create (optionally resizable \u0026 rounded) plain-colored `UIImages`..**\n\n####CocoaPods\n\n[CocoaPods](http://cocoapods.org/) is the recommended way to use UIImage+ImageWithColor in your project.\n\n* Simply add this line to your `Podfile`: `pod 'UIImage+ImageWithColor'`\n* Run `pod install`.\n\n####Manual installation\n\n* Add `UIImage+ImageWithColor` header and implementation to your project (2 files total).\n\n###How To Use It\n\n```objc\n@import UIImageWithColor;\n\n//…\n\nUIColor *color = [UIColor colorWithWhite:0 alpha:0.33];\nUIImage *img = [UIImage imageWithColor:color];\n[self.button setBackgroundImage:img forControlState:UIControlStateNormal];\n\n// or if you need an image with dimensions greater than 1x1 pixels\nUIColor *color = [UIColor redColor];\nUIImage *img = [UIImage imageWithColor:color size:CGSizeMake(20, 20)];\n[self.button setBackgroundImage:img forControlState:UIControlStateNormal];\n\n// or if you need a resizable/stretchable image with rounded corners\nUIColor *color = [UIColor purpleColor];\nUIImage *img = [UIImage resizableImageWithColor:color cornerRadius:10];\n[self.button setBackgroundImage:img forControlState:UIControlStateNormal];\n```\n\n###Author\n\nCreated and maintained by Max Howell ([@Max Howell](https://twitter.com/mxcl)).\n\n###License\n\nThis is free and unencumbered software released into the public domain.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxcl%2Fuiimagewithcolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxcl%2Fuiimagewithcolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxcl%2Fuiimagewithcolor/lists"}