{"id":16829681,"url":"https://github.com/mxcl/uicolorperceivedluminance","last_synced_at":"2025-10-26T22:35:51.160Z","repository":{"id":13744681,"uuid":"16439097","full_name":"mxcl/UIColorPerceivedLuminance","owner":"mxcl","description":"[UIColor perceivedLuminance]","archived":false,"fork":false,"pushed_at":"2024-02-22T11:50:22.000Z","size":3,"stargazers_count":18,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-20T17:07:47.558Z","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":null,"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,"zenodo":null}},"created_at":"2014-02-01T17:54:01.000Z","updated_at":"2024-11-04T17:28:14.000Z","dependencies_parsed_at":"2025-04-11T04:13:45.745Z","dependency_job_id":null,"html_url":"https://github.com/mxcl/UIColorPerceivedLuminance","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/mxcl/UIColorPerceivedLuminance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcl%2FUIColorPerceivedLuminance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcl%2FUIColorPerceivedLuminance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcl%2FUIColorPerceivedLuminance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcl%2FUIColorPerceivedLuminance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mxcl","download_url":"https://codeload.github.com/mxcl/UIColorPerceivedLuminance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mxcl%2FUIColorPerceivedLuminance/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260985174,"owners_count":23092885,"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:35:08.028Z","updated_at":"2025-10-26T22:35:46.116Z","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":"```ruby\npod 'UIColor+PerceivedLuminance'\n```\n\nCoupled with the `UIImage+AverageColor` pod you can use this pod to determine\nwhat `preferredStatusBarStyle` to set for your ViewControllers:\n\n```objc\n#import \"UIImage+AverageColor.h\"\n#import \"UIColor+PerceivedLuminance.h\"\n\n\n@implementation MyViewController\n\n- (UIStatusBarStyle)preferredStatusBarStyle {\n    return self.topImageView.image.averageColor.perceivedLuminance \u003e 0.5\n        ? UIStatusBarStyleLightContent\n        : UIStatusBarStyleDefault;\n}\n\n@end\n\n```\n\nIf you are having trouble getting `preferredStatusBarStyle` to be respected, I recommmend this StackOverflow question/answer: http://stackoverflow.com/questions/19108513/uistatusbarstyle-preferredstatusbarstyle-does-not-work-on-ios-7/19365160#19365160\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxcl%2Fuicolorperceivedluminance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmxcl%2Fuicolorperceivedluminance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmxcl%2Fuicolorperceivedluminance/lists"}