EPAppearance

public class EPAppearance : NSObject

Object representing the appearance of a chat conversation.

  • The appearance main tint color

    Declaration

    Swift

    public var mainTintColor: UIColor
  • The appearance of the different messages bubbles (incoming message, outgoing message, with or without a tail).

    Declaration

    Swift

    public var bubbleAppearance: EPAppearance.Bubbles
  • The appearance of the input UI components.

    Declaration

    Swift

    public var inputAppearance: EPAppearance.Input
  • Font to use to display the messages. Default value is nil. (optional)

    Declaration

    Swift

    public var customFontName: String?
  • textLineMultipleHeight can be customize (optional)

    Declaration

    Swift

    public var textLineAdditionnalSpacing: CGFloat?
  • Font to use for strong messages. Default value is nil. (optional)

    Declaration

    Swift

    public var customStrongFontName: String?
  • Chat conversation background image. Default value is nil. (optional)

    Declaration

    Swift

    public var customBackgroundImage: UIImage?
  • Chat conversation background color. Default value is UIColor.clear.

    Declaration

    Swift

    public var customBackgroundColor: UIColor
  • The font color of the date section title.

    Declaration

    Swift

    public var customSectionDateColor: UIColor?
  • When displaying a button at the bot end, this is its background color.

    Declaration

    Swift

    public var endBotButtonColor: UIColor
  • When displaying a button at the bot end, this is its text color.

    Declaration

    Swift

    public var endBotButtonTextColor: UIColor
  • Appearance of standard animation.

    Declaration

    Swift

    public var animationConfiguration: EPAppearance.AnimationOption
  • Get the regular font based on the appearance with the specified size.

    Declaration

    Swift

    public func regularFont(size: CGFloat) -> UIFont

    Parameters

    size

    The size of the font to get.

    Return Value

    The font with the specified size.

  • Get the strong font based on the appearance with the specified size.

    Declaration

    Swift

    public func strongFont(size: CGFloat) -> UIFont

    Parameters

    size

    The size of the font to get.

    Return Value

    The font with the specified size.

  • Simple customized appearance

    Declaration

    Swift

    public convenience init(resourcePrefix: String = "default", mainColor: UIColor, secondaryColor: UIColor, generalAppearance: EPAppearance.Bubbles.GlobalAppearance = EPAppearance.Bubbles.GlobalAppearance())

    Parameters

    resourcePrefix

    prefix string used in all asset provided

    mainColor

    color used for outgoing bubbles

    secondaryColor

    color used for incoming bubbles

  • Object representing the appearance of standard animation.

    See more

    Declaration

    Swift

    public class AnimationOption : NSObject
  • Object representing the appearance of the different messages bubbles.

    See more

    Declaration

    Swift

    public class Bubbles : NSObject
  • Object representing the appearance of the input UI components.

    See more

    Declaration

    Swift

    public class Input : NSObject