UIColor

extension UIColor
  • Form current visual style.

    Declaration

    Swift

    static var style: FWStyle
  • Creates a color object from a hex string value

    Declaration

    Swift

    convenience init?(hex: String)

    Parameters

    hex

    String Hex value. Formatted in #FFFFFF

  • Returns color hex value.

    Declaration

    Swift

    func toHex(_ alpha: Bool = false) -> String?

    Parameters

    alpha

    Boolean value indicating wether to include alpha channel on the response.

    Return Value

    Color hex value. Returns nil if unable convert.

  • Hex value with no alpha.

    Declaration

    Swift

    var toHex: String? { get }
  • Used to highlight buttons and interactable elements.

    Declaration

    Swift

    class var fwAccent: UIColor { get }
  • Form view background color.

    Declaration

    Swift

    class var fwBackground: UIColor { get }
  • Component view background color.

    Declaration

    Swift

    class var fwComponentBackground: UIColor { get }
  • Component title text color.

    Declaration

    Swift

    class var fwComponentTitle: UIColor { get }
  • Component description text color.

    Declaration

    Swift

    class var fwComponentDescription: UIColor { get }
  • Component input field text color.

    Declaration

    Swift

    class var fwComponentInputText: UIColor { get }
  • Component input background color.

    Declaration

    Swift

    class var fwComponentInputBackground: UIColor { get }
  • Component required checkmark color.

    Declaration

    Swift

    class var fwComponentRequired: UIColor { get }
  • Component valid input checkmark color.

    Declaration

    Swift

    class var fwComponentCorrect: UIColor { get }
  • Component placeholder text color.

    Declaration

    Swift

    class var fwComponentPlaceholder: UIColor { get }