Digital ACT191 story ONEAPP-7592 - Color Updates to allow strings or hash
This commit is contained in:
parent
58c462c15e
commit
b0c2a301eb
@ -299,6 +299,10 @@
|
||||
}
|
||||
|
||||
+ (nullable UIColor *)mfGetColorForString:(nullable NSString *)string {
|
||||
if ([string hasPrefix:@"#"]) {
|
||||
return [self mfGetColorForHex:string];
|
||||
}
|
||||
|
||||
static NSDictionary *stringColorMapping;
|
||||
static dispatch_once_t once;
|
||||
dispatch_once(&once, ^{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user