Color Generate color based on the given string Jun 26, 2018 1 min read PFColorHash Swift 3.0 SUPPORT! Generate color based on the given string. Thanks to color-hash. Usage Basic let colorHash = PFColorHash() // in HSL, Hue ∈ [0, 360), Saturation ∈ [0, 1], Lightness ∈ [0, 1] colorHash.hsl('Hello World') // [ 225, 0.65, 0.35 ] // in RGB, R, G, B ∈ [0, 255] colorHash.rgb('Hello World') // [ 134, 150, 196 ] // in HEX colorHash.hex('Hello World') // '#8696c4' Swift Custom Hash Function / Lightness / Saturation let colorHash = PFColorHash(hash: { (str: String) -> Int64 in var hashValue: Int64 = 0 // Your Hash Function Here return hashValue }) Swift let colorHash = PFColorHash(lightness: [0.35, 0.5, 0.65]) Swift let colorHash = PFColorHash(saturation: [0.35, 0.5, 0.65]) Swift let colorHash = PFColorHash(lightness: [0.35, 0.5, 0.65], saturation: [0.35, 0.5, 0.65]) Swift GitHub PerfectFreeze/PFColorHash?? — Read MoreDownload as zip Color
Color AppearanceProviding - A SwiftUI library for selecting a preferred color scheme AppearanceProviding is a SwiftUI library for selecting a preferred color scheme. 27 January 2024
Color A Swift 5.4, highly-customizable, ScreenCaptureKit-based color sampler A Swift 5.4, highly-customizable, ScreenCaptureKit-based color sampler 08 November 2023
Color A versatile alternative to NSColorWell for Cocoa and ColorPicker for SwiftUI A versatile alternative to NSColorWell for Cocoa and ColorPicker for SwiftUI 12 October 2023