ColorRepresentable

public struct ColorRepresentable : Codable, Equatable

Container to represent UIColorfor use by the map renderer

  • Undocumented

    Declaration

    Swift

    public var rgbaDescription: String? { get }
  • Create a string representation of a UIColor

    Declaration

    Swift

    public init(color: UIColor)

    Parameters

    color

    A UIColor instance in the sRGB color space

    Return Value

    Initializes a ColorRepresentable instance if the color is in sRGB color space.

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Declaration

    Swift

    public init(from decoder: Decoder) throws