{"id":16948644,"url":"https://github.com/timoliver/uicolor-legacysemanticcolors","last_synced_at":"2025-08-24T17:37:03.236Z","repository":{"id":56924817,"uuid":"257959436","full_name":"TimOliver/UIColor-LegacySemanticColors","owner":"TimOliver","description":"A UIColor category that backports the new semantic colors of iOS 13 to iOS 12.","archived":false,"fork":false,"pushed_at":"2020-04-26T10:02:40.000Z","size":536,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T03:48:44.437Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/TimOliver.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"timoliver","custom":"https://tim.dev/paypal"}},"created_at":"2020-04-22T16:34:54.000Z","updated_at":"2024-03-12T04:00:26.000Z","dependencies_parsed_at":"2022-08-20T22:50:25.832Z","dependency_job_id":null,"html_url":"https://github.com/TimOliver/UIColor-LegacySemanticColors","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/TimOliver/UIColor-LegacySemanticColors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FUIColor-LegacySemanticColors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FUIColor-LegacySemanticColors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FUIColor-LegacySemanticColors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FUIColor-LegacySemanticColors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimOliver","download_url":"https://codeload.github.com/TimOliver/UIColor-LegacySemanticColors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FUIColor-LegacySemanticColors/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271915024,"owners_count":24843186,"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","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2024-10-13T21:51:47.303Z","updated_at":"2025-08-24T17:37:03.185Z","avatar_url":"https://github.com/TimOliver.png","language":"Objective-C","funding_links":["https://github.com/sponsors/timoliver","https://tim.dev/paypal","https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=M4RKULAVKV7K8"],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"https://github.com/TimOliver/UIColor-LegacySemanticColors/raw/master/screenshot.jpg\" align=\"right\" width=\"400\" /\u003e\n\n# UIColor-LegacySemanticColors\n\n[![Version](https://img.shields.io/cocoapods/v/UIColor+LegacySemanticColors.svg?style=flat)](http://cocoadocs.org/docsets/UIColor+LegacySemanticColors)\n[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/TimOliver/UIColor-LegacySemanticColors/master/LICENSE)\n[![PayPal](https://img.shields.io/badge/paypal-donate-blue.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=M4RKULAVKV7K8)\n[![Twitch](https://img.shields.io/badge/twitch-timXD-6441a5.svg)](http://twitch.tv/timXD)\n\n*A very basic back-port of the `UIColor` semantic color APIs introduced in iOS 13.*\n\n`UIColor-LegacySemanticColors` is an Objective-C category on `UIColor` that uses features of the runtime to dynamically implement the semantic color API methods from iOS 13 with similar behaving ones in iOS 12. It also allows configuration to display either light or dark mode variants of each color.\n\nOn iOS 13 and up, this library is a no-op, ensuring there will not be any breaking behaviour in future versions of iOS.\n\nThe goal of this library is to simplify Dark Mode in iOS 13, while also supporting iOS 12.\n\n## Features\n* Source compatibility with the semantic color APIs in iOS 13.\n* Support for light and dark color variants.\n* Performs no runtime modifying code in iOS 13 and above, making it safe for future versions.\n\n## Requirements\n* iOS 12.0 \n* Xcode 11.0 or higher\n* Objective-C only (I sadly discovered it doesn't work in Swift... 😅)\n\n## Installation Instructions\n\n\u003cdetails\u003e\n\t\u003csummary\u003e\u003cstrong\u003eCocoaPods\u003c/strong\u003e\u003c/summary\u003e\n\t\u003cbr\u003e\n\t\u003cpre\u003epod 'UIColor+LegacySemanticColors'\u003c/pre\u003e\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\t\u003csummary\u003e\u003cstrong\u003eCarthage\u003c/strong\u003e\u003c/summary\u003e\n\t\u003cbr\u003e\n\tCarthage is not supported at this time. If you would like Carthage support, please file a PR.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\t\u003csummary\u003e\u003cstrong\u003eManual Installation\u003c/strong\u003e\u003c/summary\u003e\n\t\u003cbr\u003e\n\tSimply move the `UIColor-LegacySemanticColors` folder to your Xcode project and import it.\n\u003c/details\u003e\n\n## Sample Code\n\nThe API behaves just like the official one in iOS 13.\n\n### Objective-C\n\n```objc\n// Set all returned colors to be dark variants\n[UIColor setLegacyInterfaceStyle:UIUserInterfaceStyleDark];\n\n// Get the default label color\nUIColor *labelColor = [UIColor labelColor];\n```\n\n## Credits\n\nDeveloped by [Tim Oliver](http://twitter.com/TimOliverAU).\n\nDevice mockup by [Pixeden](http://pixeden.com).\n\nSpecial thanks to [Noah Gilmore](https://twitter.com/noahsark769) for [publishing the hex codes](https://noahgilmore.com/blog/dark-mode-uicolor-compatibility/) for all of the semantic colors.\n\n## License\n\n`UIColor-LegacySemanticColors` is licensed under the MIT License, please see the [LICENSE](LICENSE) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Fuicolor-legacysemanticcolors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimoliver%2Fuicolor-legacysemanticcolors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Fuicolor-legacysemanticcolors/lists"}