removed isDark

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-10-08 09:10:04 -05:00
parent 54b50bffd3
commit bf2a3e7e5b
2 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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