ui-color
ui-color copied to clipboard
Converting HEX & RGB colors to UIColor for both Objective C & Swift.
I added the support for MacOS as asked in issue #27 :)
Hi! First off, thanks for your excellent work of providing this tool. It was one of the first hits when searching using google. The UI looks nice too. I found...
Resolved #32.
 None of copyObjectiveC, copySwift, copyXamarin buttons work. I use Safari Version 11.0, macOS Sierra 10.12.6 And thx for useful tool, btw 👍
Sometimes, I only have the UIColor and want to get the hex-value so it would be good to allow input like `UIColor(red:0.07, green:0.20, blue:0.34, alpha:1.0)`.
Happy to open a pull request but how would you feel about updating the formatting? `UIColor(red:0.94, green:0.18, blue:0.17, alpha:1.0)` to include a space after the ':' `UIColor(red: 0.94, green: 0.18,...
8 digits hex color codes should be allowed instead of alpha field.
`#010101` encodes to `UIColor(red: 0.00, blue: 0.00, green: 0.00)`, which proves precision is lost. Assuming Apple uses 32 bit color underneath it all, we've thus lost information.
Would be neat to show NSColor values, for those of us who write for macOS :) Currently it's already useful by doing the math automatically. Thanks!