removed isDark
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
54b50bffd3
commit
bf2a3e7e5b
@ -183,8 +183,8 @@
|
||||
// Returns a gradient lighter color;
|
||||
+ (nonnull UIColor *)mfGradientColor:(nullable UIColor *)color;
|
||||
|
||||
// Returns if the color is dark or not
|
||||
- (BOOL)isDark;
|
||||
//// Returns if the color is dark or not
|
||||
//- (BOOL)isDark;
|
||||
|
||||
#pragma mark - Hex String
|
||||
|
||||
|
||||
@ -387,11 +387,11 @@
|
||||
return [UIColor whiteColor];
|
||||
}
|
||||
|
||||
- (BOOL)isDark {
|
||||
CGFloat greyScale = 0;
|
||||
[self getWhite:&greyScale alpha:nil];
|
||||
return greyScale < 0.5;
|
||||
}
|
||||
//- (BOOL)isDark {
|
||||
// CGFloat greyScale = 0;
|
||||
// [self getWhite:&greyScale alpha:nil];
|
||||
// return greyScale < 0.5;
|
||||
//}
|
||||
|
||||
#pragma mark - Hex String
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user