UIColor

Undocumented

  • Color from SyncEngine for key ‘theme’

    Declaration

    Swift

    public static var theme:UIColor!
  • Color from SyncEngine for key ‘accent’

    Declaration

    Swift

    public static var accent:UIColor!
  • Color from SyncEngine for key ‘primary’

    Declaration

    Swift

    public static var primary:UIColor!
  • Color from SyncEngine for key ‘secondary’

    Declaration

    Swift

    public static var secondary:UIColor!
  • Color from SyncEngine for specific key

    Declaration

    Swift

    public class func color(forKey key: String?) -> UIColor!
  • The shorthand three-digit hexadecimal representation of color. Color #RGB defines to the color #RRGGBB.

    Declaration

    Swift

    public convenience init(hex3: UInt16, alpha: CGFloat = 1)

    Parameters

    hex3

    Three-digit hexadecimal value.

    alpha

    0.0 - 1.0. The default is 1.0.

  • The shorthand four-digit hexadecimal representation of color with alpha. Color #RGBA defines to the color #RRGGBBAA.

    Declaration

    Swift

    public convenience init(hex4: UInt16)

    Parameters

    hex4

    Four-digit hexadecimal value.

  • The six-digit hexadecimal representation of color of the form #RRGGBB.

    Declaration

    Swift

    public convenience init(hex6: UInt32, alpha: CGFloat = 1)

    Parameters

    hex6

    Six-digit hexadecimal value.

  • The six-digit hexadecimal representation of color with alpha of the form #RRGGBBAA.

    Declaration

    Swift

    public convenience init(hex8: UInt32)

    Parameters

    hex8

    Eight-digit hexadecimal value.

  • The rgba string representation of color with alpha of the form #RRGGBBAA/#RRGGBB, throws error.

    Declaration

    Swift

    public convenience init(rgba_throws rgba: String) throws

    Parameters

    rgba

    String value.

  • The rgba string representation of color with alpha of the form #RRGGBBAA/#RRGGBB, fails to default color.

    Declaration

    Swift

    public convenience init(_ rgba: String, defaultColor: UIColor = UIColor.clear)

    Parameters

    rgba

    String value.

  • Hex string of a UIColor instance.

    Declaration

    Swift

    public func hexString(_ includeAlpha: Bool = true) -> String

    Parameters

    includeAlpha

    Whether the alpha should be included.