MTColor

public struct MTColor : Sendable, Codable

Color wrapper.

  • CGColor representaion of the MTColor

    Declaration

    Swift

    public var cgColor: CGColor? { get }
  • Initializes the MTColor with CGColor

    Declaration

    Swift

    public init(color: CGColor)
  • Initializes the MTColor with a hex string (e.g., “#RRGGBB” or “#RRGGBBAA”).

    Declaration

    Swift

    public init(hex: String)