ASAPPStyles

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

Holds customizable styles and other visual SDK settings.

  • Customizable text styles.

    Declaration

    Swift

    public var textStyles: ASAPPTextStyles
  • Customizable colors.

    Declaration

    Swift

    public var colors: ASAPPColors
  • Customizable navigation bar styles.

    Declaration

    Swift

    public var navBarStyles: ASAPPNavBarStyles
  • The rounding style of primary Component buttons. .pill is equivalent to a radius of half the height of the button. Defaults to .radius(0).

    Declaration

    Swift

    public var primaryButtonRoundingStyle: ASAPPPrimaryButtonRoundingStyle { get set }
  • The orientation(s) in which ASAPP is allowed to appear. Defaults to .portraitLocked. Notes:

    1. Landscape orientation is not supported on iPhone.
    2. With iOS 11+, when the client app is launched in Landscape mode and ASAPP is presented in Landscape and then a transition is made to portrait, the keyboard input will detach from the keyboard. To avoid this known issue, please rotate to the desired orientation before presenting ASAPP.

    Declaration

    Swift

    public var allowedOrientations: ASAPPAllowedOrientations
  • Whether Dark Mode is allowed. Defaults to false. Set this to true to make the ASAPP interface respect the system Dark Mode setting. Make sure the color you assigned to ASAPP.styles.colors.primary has a dark variant, as well as any other colors you may have overridden. To define dark variants, change the “Appearances” setting for a color set in an asset catalog.

    Declaration

    Swift

    public var isDarkModeAllowed: Bool