{"id":18705199,"url":"https://github.com/hsluv/hsluv-swift","last_synced_at":"2025-04-12T10:07:11.229Z","repository":{"id":33802564,"uuid":"37496602","full_name":"hsluv/hsluv-swift","owner":"hsluv","description":"Swift implementation of HSLuv (revision 4)","archived":false,"fork":false,"pushed_at":"2025-03-11T07:10:50.000Z","size":1634,"stargazers_count":38,"open_issues_count":2,"forks_count":7,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-12T10:05:51.287Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hsluv.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":"2015-06-15T23:24:07.000Z","updated_at":"2025-04-05T05:45:17.000Z","dependencies_parsed_at":"2022-07-29T19:19:21.615Z","dependency_job_id":null,"html_url":"https://github.com/hsluv/hsluv-swift","commit_stats":null,"previous_names":["husl-colors/husl-swift"],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-swift","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-swift/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-swift/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hsluv%2Fhsluv-swift/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hsluv","download_url":"https://codeload.github.com/hsluv/hsluv-swift/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248550633,"owners_count":21122933,"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-11-07T12:10:01.447Z","updated_at":"2025-04-12T10:07:11.194Z","avatar_url":"https://github.com/hsluv.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HSLuvSwift\n\n[![SwiftPM compatible](https://img.shields.io/badge/SwiftPM-compatible-brightgreen.svg)](https://swift.org/package-manager/)\n[![Cocoapod compatible](https://img.shields.io/cocoapods/v/HSLuvSwift.svg)](https://cocoapods.org/pods/HSLuvSwift)\n[![Carthage compatible](https://img.shields.io/badge/carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![Build Status](https://travis-ci.org/hsluv/hsluv-swift.svg?branch=master)](https://travis-ci.org/hsluv/hsluv-swift)\n[![MIT License](https://img.shields.io/badge/license-MIT%20License-blue.svg)](LICENSE)\n\nSwift port of [HSLuv](http://www.hsluv.org) (revision 4), courtesy \nof [Clay Smith](https://github.com/stphnclysmth)\n\n[Explanation, demo, ports etc.](http://www.hsluv.org)\n\n\n## USAGE\n\nThis framework adds a single initializer on the OS-specific color class to create a color from HSLuv parameters. The initializer takes the same parameters on both macOS and iOS.\n\n```swift\n// macOS\nlet color = NSColor(hue: 360.0, saturation: 100.0, lightness: 100.0, alpha: 1.0)\n\n// iOS\nlet color = UIColor(hue: 360.0, saturation: 100.0, lightness: 100.0, alpha: 1.0)\n```\n\n\n## INSTALL\n\nThis project is compatible with Swift Package Manager, CocoaPods and Carthage. (These instructions assume that your chosen method is already installed.)\n\n#### Swift Package Manager\n\nAs of version 2.1.0, you can use the Swift Package Manager as integration method.\nIf you want to use the Swift Package Manager as integration method, either use Xcode to add the package dependency or add the following dependency to your Package.swift:\n\n```swift\n.package(url: \"https://github.com/hsluv/hsluv-swift.git\", from: \"2.1.0\"),\n```\n\n### CocoaPods\n\nAdd `pod 'HSLuvSwift'` to your target. Since this is a Swift dynamic framework, you must also tell CocoaPods to `use_frameworks!` instead of static libraries.\n\n```ruby\nplatform :ios, '10.0' # or, :osx, '10.10'\nuse_frameworks!\n\ntarget 'YourProject' do\npod 'HSLuvSwift', '~\u003e 2.0.0'\nend\n```\n\n### Carthage\n\nAdd `github \"hsluv/hsluv-swift\" ~\u003e 2.0.0` to your Cartfile and run `carthage bootstrap`. This builds frameworks for Mac and iOS targets. \n\n```sh\n\u003e echo 'github \"hsluv/hsluv-swift\" ~\u003e 2.0.0' \u003e\u003e Cartfile\n\u003e carthage bootstrap\n```\n\n\n## TODO\n\n* Finish HPLuv implementation\n* Improve tests and add continuous integration testing\n* Add usage documentation\n\n\n## License\n\nSee [License](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsluv%2Fhsluv-swift","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhsluv%2Fhsluv-swift","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhsluv%2Fhsluv-swift/lists"}