ASAPPInputColors

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

Used to configure the colors of text input area in the chat view.

Properties

  • The color of the background of the input area.

    Declaration

    Swift

    public var background: UIColor
  • The color of the text.

    Declaration

    Swift

    public var text: UIColor
  • The color of the placeholder text, visible before anything has been typed.

    Declaration

    Swift

    public var placeholderText: UIColor
  • The tint color of the text area (used by the cursor).

    Declaration

    Swift

    public var tint: UIColor
  • The color of the border of the text area.

    Declaration

    Swift

    public var border: UIColor?
  • The fill (or text) color of the send button.

    Declaration

    Swift

    public var primaryButton: UIColor
  • The color of the media attachment button.

    Declaration

    Swift

    public var secondaryButton: UIColor

Init

  • Creates an instance of ASAPPInputColors with the given parameters.

    Declaration

    Swift

    public init(background: UIColor,
                text: UIColor,
                placeholderText: UIColor,
                tint: UIColor,
                border: UIColor?,
                primaryButton: UIColor,
                secondaryButton: UIColor)

    Parameters

    background

    The background color.

    placeholderText

    The placeholder text color.

    tint

    The tint color.

    border

    The border color.

    primaryButton

    The primary button color.

    secondaryButton

    The secondary button color.