puls / objc-codegenutils

Three small tools to help you meet Xcode halfway.
Other
507 stars 26 forks source link

Look for NSCalibratedRGBColorSpace when code-generating color lists #10

Closed mthole-old closed 4 years ago

mthole-old commented 10 years ago

Expect NSCalibratedRGBColorSpace from color lists, as its what +[UIColor colorWithRed:green:blue:alpha:] uses. Without this change, you end up with slightly different colors depending on if you're using the generated code or drag-and-dropping colors from the color list in IB.

@puls

drodriguez commented 10 years ago

+1. I noticed this when I started using the tool (which is awesome). The colors are slightly different (both the simulator and the device).