From b0c2a301eb17176184e6a70886200baa0b885468 Mon Sep 17 00:00:00 2001 From: Scott Pfeil Date: Tue, 30 Apr 2024 12:32:15 -0400 Subject: [PATCH] Digital ACT191 story ONEAPP-7592 - Color Updates to allow strings or hash --- MVMCoreUI/Categories/UIColor+MFConvenience.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/MVMCoreUI/Categories/UIColor+MFConvenience.m b/MVMCoreUI/Categories/UIColor+MFConvenience.m index 77700413..259ba747 100644 --- a/MVMCoreUI/Categories/UIColor+MFConvenience.m +++ b/MVMCoreUI/Categories/UIColor+MFConvenience.m @@ -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, ^{