I have a Common.h
with the following defined:
// Get UIColor from Hex value
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define CellTextColor UIColorFromRGB((uint32_t) 0x217EB5)
I want to be able to use CellTextColor
for the coloring in Swift. But it's not allowing me to run the macros. Only when I have #define value @"string"
it works in Swift.
Is there something else I need to do here?
I read the below links: