diff --git a/Chameleon/UIColor+Chameleon.m b/Chameleon/UIColor+Chameleon.m index 0e2c6c7..e323484 100644 --- a/Chameleon/UIColor+Chameleon.m +++ b/Chameleon/UIColor+Chameleon.m @@ -380,7 +380,7 @@ + (UIColor *)colorWithContrastingBlackOrWhiteColorOn:(UIColor *)backgroundColor //Calculate Luminance CGFloat luminance; - CGFloat red, green, blue, alpha; + CGFloat red = 0.0, green = 0.0, blue = 0.0, alpha = 0.0; //Check if color is transparent if (alpha == 0) { @@ -423,7 +423,7 @@ + (UIColor *)colorWithContrastingBlackOrWhiteColorOn:(UIColor *)backgroundColor //Calculate Luminance CGFloat luminance; - CGFloat red, green, blue, alpha; + CGFloat red = 0.0, green = 0.0, blue = 0.0, alpha = 0.0; [backgroundColor getRed:&red green:&green blue:&blue alpha:&alpha]; //Check if color is transparent diff --git a/ChameleonDemo/ChameleonDemo.xcodeproj/project.xcworkspace/xcuserdata/ViccAlexander.xcuserdatad/UserInterfaceState.xcuserstate b/ChameleonDemo/ChameleonDemo.xcodeproj/project.xcworkspace/xcuserdata/ViccAlexander.xcuserdatad/UserInterfaceState.xcuserstate index cf046bb..bdcf4ad 100644 Binary files a/ChameleonDemo/ChameleonDemo.xcodeproj/project.xcworkspace/xcuserdata/ViccAlexander.xcuserdatad/UserInterfaceState.xcuserstate and b/ChameleonDemo/ChameleonDemo.xcodeproj/project.xcworkspace/xcuserdata/ViccAlexander.xcuserdatad/UserInterfaceState.xcuserstate differ