Skip to content

logancautrell/NSColor-fromHex-Swift

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSColor+fromHex

Easily create NSColor objects from hex colors in Swift

oooh

Sample usage

var hexColor = "#259B9A"
NSColor.fromHex(hexColor)
// returns an NSColor object:
// `NSColor(calibratedRed: 0.145, green: 0.608, blue: 0.604, alpha: 1)`

About

Simple NSColors from Hex colors in Swift

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%