added color helper
Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
parent
bbdf496cda
commit
f8bffa7981
@ -119,4 +119,11 @@ extension UIColor {
|
|||||||
guard let _ = found else { return false}
|
guard let _ = found else { return false}
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public func toVDSColor() -> VDSColor? {
|
||||||
|
guard let hex = hexString else { return nil }
|
||||||
|
let found = VDSColor.allCases.first{ $0.uiColor.hexString == hex }
|
||||||
|
guard let found else { return nil}
|
||||||
|
return found
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user