ASAPPColors

@objc(ASAPPColors)
@objcMembers
public class ASAPPColors : NSObject

Configurable colors for various parts of the SDK.

General

  • The color of most primary text and UI elements such as icons and buttons without a background.

    Declaration

    Swift

    public var primary: UIColor { get set }
  • The color of text and other elements that appear on top of the primary color.

    Declaration

    Swift

    public var onPrimary: UIColor { get set }
  • The color of most secondary text and UI elements.

    Declaration

    Swift

    public var onBackground: UIColor { get set }

Chat: Navigation Bar

  • The background color of the navigation bar.

    Declaration

    Swift

    public var navBarBackground: UIColor?
  • The color of the navigation bar title text.

    Declaration

    Swift

    public var navBarTitle: UIColor
  • The color of navigation bar buttons in the chat view, as well as the color of the close/back button.

    Declaration

    Swift

    public var navBarButton: UIColor
  • The color of navigation bar buttons while tapped.

    Declaration

    Swift

    public var navBarButtonActive: UIColor

Chat: General Content

  • The color of the background of most elements.

    Declaration

    Swift

    public var background: UIColor { get set }
  • The color of most separators.

    Declaration

    Swift

    public var separatorPrimary: UIColor { get set }
  • The color of secondary separators, such as the borders of checkboxes and tabs.

    Declaration

    Swift

    public var separatorSecondary: UIColor { get set }
  • The color of the active portion of controls, such as checkboxes, progress bars, radio buttons, sliders, and tabs.

    Declaration

    Swift

    public var controlTint: UIColor { get set }
  • The color of the secondary portion of some controls, such as the background of progress bars and the underline of text inputs.

    Declaration

    Swift

    public var controlSecondary: UIColor { get set }
  • The color of the background of certain parts of controls such as text areas, text input, dropdowns, checkboxes, and radio button views.

    Declaration

    Swift

    public var controlBackground: UIColor { get set }
  • The color of UI elements representing success and the default color of buttons representing a positive choice.

    Declaration

    Swift

    public var success: UIColor { get set }
  • The color of the connection status banner’s background while disconnected and other UI elements displaying a warning.

    Declaration

    Swift

    public var warning: UIColor { get set }
  • The color of UI elements representing failure and the default color of buttons representing a negative choice.

    Declaration

    Swift

    public var failure: UIColor { get set }

Chat: Buttons

  • The color of text buttons, usually an accent color.

    Declaration

    Swift

    public var textButtonPrimary: ASAPPButtonColors { get set }
  • The colors of block-style buttons for primary actions, usually an accent color.

    Declaration

    Swift

    public var buttonPrimary: ASAPPButtonColors { get set }
  • The colors of block-style buttons for secondary actions like cancelling, usually a muted color.

    Declaration

    Swift

    public var buttonSecondary: ASAPPButtonColors { get set }

Chat: Messages

  • The list of colors for the messages list’s background gradient.

    Declaration

    Swift

    public var messagesListBackground: UIColor
  • The color of chat message text.

    Declaration

    Swift

    public var messageText: UIColor
  • The color of the background of chat messages sent by the user.

    Declaration

    Swift

    public var messageBackground: UIColor
  • The color of the border of chat messages sent by the user.

    Declaration

    Swift

    public var messageBorder: UIColor?
  • The color of chat message reply text.

    Declaration

    Swift

    public var replyMessageText: UIColor
  • The color of the background of chat message replies.

    Declaration

    Swift

    public var replyMessageBackground: UIColor
  • The color of the border of chat message replies.

    Declaration

    Swift

    public var replyMessageBorder: UIColor

Chat: Quick Replies

Chat: Input