Fixed: Changed CPColor parameter from string to CPString

Parameter type in CPColor was string, changed here to CPString, to make it more inline with other string parameter types.
This commit is contained in:
daniel
2019-03-28 14:33:00 -07:00
parent 8598fe8ad9
commit 34ac4cd23b
+1 -1
View File
@@ -267,7 +267,7 @@ var cachedBlackColor,
@return an initialized RGB color
*/
+ (CPColor)colorWithHexString:(string)hex
+ (CPColor)colorWithHexString:(CPString)hex
{
var rgba = hexToRGB(hex);
return rgba ? [[CPColor alloc] _initWithRGBA: rgba] : null;