ColorRepresentable
public struct ColorRepresentable : Codable, Equatable
Container to represent UIColor
for use by the map renderer
-
Expression representation of a
UIColor
used by the rendererDeclaration
Swift
public let colorRepresentation: Expression?
-
UIColor
instance represented by thisColorRepresentable
Declaration
Swift
public var uiColor: UIColor? { get }
-
Create a string representation of a
UIColor
Declaration
Swift
public init(color: UIColor)
Parameters
color
A
UIColor
instance in the sRGB color spaceReturn Value
Initializes a
ColorRepresentable
instance if thecolor
is in sRGB color space. -
Declaration
Swift
public func encode(to encoder: Encoder) throws
-
Declaration
Swift
public init(from decoder: Decoder) throws