ColorSenseRainbow
ColorSenseRainbow copied to clipboard
UIColor(hex: "123456") not working
Does not show colors for UIColor instances created with the hex initializer.
Hi,
Are you using the Rainbow Creator library or some other custom initializer? If it’s my Rainbow Creator library then the code would be
let foregroundColour = UIColor ( hexString: “123456" ) There isn’t an initializer included from Apple that uses hex values (integers or strings) so people write their own. I haven’t set up the plug-in to recognize initializers in the format of UIColor ( hex: “123456” ) and that’s why you aren’t seeing a preview.
Reid.
On Sep 10, 2016, at 1:51 PM, Joe Cavallaro [email protected] wrote:
Does not show colors for UIColor instances created with the hex initializer.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NorthernRealities/ColorSenseRainbow/issues/27, or mute the thread https://github.com/notifications/unsubscribe-auth/AK5YQrHtfOAyrL4mBR9AEjd2pBHCv4lPks5qou4OgaJpZM4J5x3r.