chameleon
chameleon copied to clipboard
Enumeration value 'kCGColorSpaceModelXYZ' not handled in switch
Get this error in XCode 11.5: Enumeration value 'kCGColorSpaceModelXYZ' not handled in switch
You can fix it by adding the missing case at line 936 in UIColor+Chameleon.m as follows: case kCGColorSpaceModelXYZ:
in order to handle it as one of the Unsupported color models.
(BTW this is great error checking by Swift/XCode.)