{"id":16684906,"url":"https://github.com/kofktu/uiapplecolor","last_synced_at":"2025-03-21T18:32:57.530Z","repository":{"id":56924738,"uuid":"214745104","full_name":"Kofktu/UIAppleColor","owner":"Kofktu","description":"Apple System Colors","archived":false,"fork":false,"pushed_at":"2020-09-05T06:52:13.000Z","size":48,"stargazers_count":38,"open_issues_count":0,"forks_count":6,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-17T02:17:10.209Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Kofktu.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":"2019-10-13T01:56:13.000Z","updated_at":"2024-12-31T02:48:42.000Z","dependencies_parsed_at":"2022-08-20T22:50:27.061Z","dependency_job_id":null,"html_url":"https://github.com/Kofktu/UIAppleColor","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/Kofktu%2FUIAppleColor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kofktu%2FUIAppleColor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kofktu%2FUIAppleColor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kofktu%2FUIAppleColor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kofktu","download_url":"https://codeload.github.com/Kofktu/UIAppleColor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244849191,"owners_count":20520660,"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-12T14:45:26.818Z","updated_at":"2025-03-21T18:32:57.135Z","avatar_url":"https://github.com/Kofktu.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UIAppleColor\n\n[![Build Status](https://travis-ci.org/Kofktu/Sniffer.svg?branch=master)](https://travis-ci.org/Kofktu/UIAppleColor)\n![Swift](https://img.shields.io/badge/Swift-5.0-orange.svg)\n[![CocoaPods](http://img.shields.io/cocoapods/v/UIAppleColor.svg?style=flat)](http://cocoapods.org/?q=name%3ASniffer%20author%3AKofktu)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n\n- Apple System Color\n- Versions below iOS 13 use the Light/Dark Mode Color\n\n## Example\n\n```swift\nlet label = UILabel()\n\nif #available(iOS 13.0, *) {\n\tlabel.textColor = .label\n} else {\n\tlabel.textColor = .black\n}\n\n// Use UIAppleColor\nlabel.textColor = UIColor.apple.label\n```\n\n```swift\npublic extension UIColor {\n    static let apple: UIAppleColor\n}\n\npublic struct UIAppleColor {\n    var systemBackground: UIColor\n    var secondarySystemBackground: UIColor\n    var tertiarySystemBackground: UIColor\n\n    var systemGroupedBackground: UIColor\n    var secondarySystemGroupedBackground: UIColor\n    var tertiarySystemGroupedBackground: UIColor\n\n    var systemFill: UIColor\n    var secondarySystemFill: UIColor\n    var tertiarySystemFill: UIColor\n    var quaternarySystemFill: UIColor\n\n    var lightText: UIColor\n    var darkText: UIColor\n    var label: UIColor\n    var secondaryLabel: UIColor\n    var tertiaryLabel: UIColor\n    var quaternaryLabel: UIColor\n\n    var link: UIColor\n    var placeholderText: UIColor\n    var separator: UIColor\n    var opaqueSeparator: UIColor\n\n    var systemRed: UIColor\n    var systemGreen: UIColor\n    var systemBlue: UIColor\n    var systemOrange: UIColor\n    var systemYellow: UIColor\n    var systemPink: UIColor\n    var systemPurple: UIColor\n    var systemTeal: UIColor\n    var systemIndigo: UIColor\n    var systemGray: UIColor\n    var systemGray2: UIColor\n    var systemGray3: UIColor\n    var systemGray4: UIColor\n    var systemGray5: UIColor\n    var systemGray6: UIColor\n}\n```\n\n#### When using dark mode below iOS 13\n\n\n```swift\n// once in the first time\nUIAppleColor.setup(mode: .dark)\n\nlet label = UILabel()\nlabel.textColor = UIColor.apple.label\n```\n\n```swift\nlet label = UILabel()\nlabel.textColor = UIColor.apple.mode(.dark).label\n```\n\n## Installation\n\n#### CocoaPods\nUIAppleColor is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod \"UIAppleColor\"\n```\n\n#### Carthage\nFor iOS 8+ projects with [Carthage](https://github.com/Carthage/Carthage)\n\n```\ngithub \"Kofktu/UIAppleColor\"\n```\n\n## References\n- Apple HIG Color (https://developer.apple.com/design/human-interface-guidelines/ios/visual-design/color/)\n\n## Authors\n\nTaeun Kim (kofktu), \u003ckofktu@gmail.com\u003e\n\n## License\n\nSniffer is available under the ```MIT``` license. See the ```LICENSE``` file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkofktu%2Fuiapplecolor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkofktu%2Fuiapplecolor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkofktu%2Fuiapplecolor/lists"}