Convenience to access cgColor.
This commit is contained in:
parent
74eea1ac2d
commit
703e0cd32b
@ -19,6 +19,11 @@ public final class Color: Codable {
|
||||
//--------------------------------------------------
|
||||
|
||||
public let uiColor: UIColor
|
||||
|
||||
public var cgColor: CGColor {
|
||||
return uiColor.cgColor
|
||||
}
|
||||
|
||||
public private(set) var hex: String = ""
|
||||
public private(set) var name: String = ""
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user