Sweetercolor

Sweetercolor is a color extension library for Swift.* Fork on GitHub.

*It has Photoshop style color blending!

// Example of hex initializer

let sun = UIColor(hex: "#FBF002")

// Example of RGB 0-255 initializer

let pink = UIColor(r: 241, g: 126, b: 177)


let container = UIView(frame: CGRectMake(0, 0, 888, 250))

container.backgroundColor = pink


let label = UILabel(frame: container.frame)

label.text = "Sweet"

label.textColor = sun


// Example of overlay similar to Photoshop with reduced alpha

// This allows us to get a more natural ambient shadow

label.layer.shadowColor = pink.overlayBlack.withAlpha(0.6).CGColor

Included methods

GitHub