ColorRepresentable
public struct ColorRepresentable : Codable, Equatable
Container to represent UIColor
for use by the map renderer
-
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