Digital ACT191 story ONEAPP-7592 - Color Updates to allow strings or hash

This commit is contained in:
Scott Pfeil 2024-04-30 12:32:15 -04:00
parent 58c462c15e
commit b0c2a301eb

View File

@ -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, ^{