Latest 0.9.4
Homepage https://github.com/wrkstrm/hsluv-color
License MIT @see LICENSE
Platforms ios 8.0, osx 10.11, requires ARC
Frameworks Foundation
Authors , ,

Cocoapod compatible
Carthage compatible
Build Status
MIT License

wrkstrm port of HSLuvSwift (revision 4), courtesy of Clay Smith

Explanation, demo, ports etc.

USAGE

This 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 OSX and iOS.

// OSX
let color = NSColor(hue: 360.0, saturation: 100.0, lightness: 100.0, alpha: 1.0)

// iOS
let color = UIColor(hue: 360.0, saturation: 100.0, lightness: 100.0, alpha: 1.0)

INSTALL

This project is compatible with CocoaPods and Carthage. (These instructions assume that your chosen method is already installed.)

CocoaPods

Add pod 'HSLuvColor' to your target. Since this is a Swift dynamic framework, you must also tell CocoaPods to use_frameworks! instead of static libraries.

platform :ios, '8.0' # or, :osx, '10.11'
use_frameworks!

target 'YourProject' do
    pod 'HSLuvColor', '~> '0.9.4'
end

Carthage

Add github "wrkstrm/hsluv-color" ~>0.9.4to your Cartfile and runcarthage bootstrap`. This builds frameworks for Mac and iOS targets.

> echo 'github "wrkstrm/hsluv-wkstrm" ~> '0.9.4' >> Cartfile
> carthage bootstrap

TODO

  • Finish HPLuv implementation
  • Improve tests and add continuous integration testing
  • Add Carthage instructions
  • Add usage documentation

License

See License

Latest podspec

{
    "name": "HSLuvColor",
    "version": "0.9.4",
    "summary": "wrkstrm port of HSLuvSwift, a human-friendly alternative to HSL.",
    "homepage": "https://github.com/wrkstrm/hsluv-color",
    "license": {
        "type": "MIT",
        "text": "@see LICENSE"
    },
    "authors": {
        "Cristian A Monterroza": "[email protected]wrkstrm.me",
        "Clay Smith": "[email protected]",
        "Alexei Boronine": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wrkstrm/hsluv-swift.git",
        "tag": "v0.9.4"
    },
    "swift_version": "4.1",
    "requires_arc": true,
    "xcconfig": {
        "SWIFT_INSTALL_OBJC_HEADER": "NO"
    },
    "source_files": "Source/*.{swift}",
    "frameworks": "Foundation",
    "platforms": {
        "ios": "8.0",
        "osx": "10.11"
    },
    "ios": {
        "source_files": "Extensions/UIKit/*.{swift}",
        "frameworks": "UIKit"
    },
    "osx": {
        "source_files": "Extensions/AppKit/*.{swift}",
        "frameworks": "AppKit"
    }
}

Pin It on Pinterest

Share This