Added support for both UIColor & NSColor