InquiryTheme

public struct InquiryTheme

Defines the color theme for an Inquiry.

General colors

  • The background color for all views.

    Declaration

    Swift

    public var backgroundColor: UIColor
  • The primary color.

    Declaration

    Swift

    public var primaryColor: UIColor
  • The darker, primary color.

    Declaration

    Swift

    public var darkPrimaryColor: UIColor
  • The accent color.

    Declaration

    Swift

    public var accentColor: UIColor

Errors

  • The error color.

    Declaration

    Swift

    public var errorColor: UIColor
  • The font for error labels.

    Declaration

    Swift

    public var errorTextFont: UIFont

Overlay

  • The background color for overlay views.

    Declaration

    Swift

    public var overlayBackgroundColor: UIColor

Navigation Bar

  • The text color for title labels.

    Declaration

    Swift

    public var navigationBarTextColor: UIColor
  • The font for title labels.

    Declaration

    Swift

    public var navigationBarTextFont: UIFont

Title text

  • The text color for title labels.

    Declaration

    Swift

    public var titleTextColor: UIColor
  • The font for title labels.

    Declaration

    Swift

    public var titleTextFont: UIFont
  • The font for card titles.

    Declaration

    Swift

    public var cardTitleTextFont: UIFont

Body text

  • The text color for body labels.

    Declaration

    Swift

    public var bodyTextColor: UIColor
  • The font for body labels.

    Declaration

    Swift

    public var bodyTextFont: UIFont

Footnote

  • The text color for footnote labels.

    Declaration

    Swift

    public var footnoteTextColor: UIColor
  • The font for footnote labels.

    Declaration

    Swift

    public var footnoteTextFont: UIFont

Form label

  • The text color for form labels.

    Declaration

    Swift

    public var formLabelTextColor: UIColor
  • The font for form labels.

    Declaration

    Swift

    public var formLabelTextFont: UIFont

Text field

  • The text color for text fields.

    Declaration

    Swift

    public var textFieldTextColor: UIColor
  • The background color for text fields.

    Declaration

    Swift

    public var textFieldBackgroundColor: UIColor
  • The border color for text fields.

    Declaration

    Swift

    public var textFieldBorderColor: UIColor
  • The corner radius for text fields.

    Declaration

    Swift

    public var textFieldCornerRadius: CGFloat
  • The font for text fields.

    Declaration

    Swift

    public var textFieldFont: UIFont
  • The font for placeholder text in text fields.

    Declaration

    Swift

    public var textFieldPlaceholderFont: UIFont

Picker

  • The text color for picker items.

    Declaration

    Swift

    public var pickerTextColor: UIColor
  • The font for picker items.

    Declaration

    Swift

    public var pickerTextFont: UIFont

Button

  • The background color for buttons, in the normal state.

    Declaration

    Swift

    public var buttonBackgroundColor: UIColor
  • The background color for buttons, in the disabled state.

    Declaration

    Swift

    public var buttonDisabledBackgroundColor: UIColor
  • The background color for buttons, in the touched state.

    Declaration

    Swift

    public var buttonTouchedBackgroundColor: UIColor
  • The text color for button text, in the normal state.

    Declaration

    Swift

    public var buttonTextColor: UIColor
  • The text color for button text, in the disabled state.

    Declaration

    Swift

    public var buttonDisabledTextColor: UIColor
  • The text alignment for button text.

    Declaration

    Swift

    public var buttonTextAlignment: NSTextAlignment
  • The tint color for button images

    Declaration

    Swift

    public var buttonImageTintColor: UIColor
  • The corner radius to apply to buttons.

    Declaration

    Swift

    public var buttonCornerRadius: CGFloat
  • The font for button text.

    Declaration

    Swift

    public var buttonFont: UIFont
  • The shadow color for buttons (this should include the desired opacity), e.g. UIColor.black.withAlphaComponent(0.5)

    Declaration

    Swift

    public var buttonShadowColor: UIColor
  • The blur radius (in points) used to render the shadow.

    Declaration

    Swift

    public var buttonShadowRadius: CGFloat
  • The offset (in points) of the shadow.

    Declaration

    Swift

    public var buttonShadowOffset: CGSize

Checkbox

  • The background color for checkboxes, in the normal state.

    Declaration

    Swift

    public var checkboxBackgroundColor: UIColor
  • The foreground color for checkboxes, in the normal state.

    Declaration

    Swift

    public var checkboxForegroundColor: UIColor

Table view cell

  • The text color for a selected table view cell.

    Declaration

    Swift

    public var selectedCellBackgroundColor: UIColor

Close button

  • The tint to apply to the close button.

    Declaration

    Swift

    public var closeButtonTintColor: UIColor

Cancel button

  • The background color for the “No, resume” button when cancelling a verification.

    Declaration

    Swift

    public var cancelButtonBackgroundColor: UIColor
  • The text color for the “No, resume” when cancelling a verification.

    Declaration

    Swift

    public var cancelButtonTextColor: UIColor
  • The background color for the “Yes, cancel” button when cancelling a verification.

    Declaration

    Swift

    public var cancelButtonAlternateBackgroundColor: UIColor
  • The text color for the “Yes, cancel” button when cancelling a verification.

    Declaration

    Swift

    public var cancelButtonAlternateTextColor: UIColor
  • The shadow color for buttons (this should include the desired opacity), e.g. UIColor.black.withAlphaComponent(0.5)

    Declaration

    Swift

    public var cancelButtonShadowColor: UIColor
  • The blur radius (in points) used to render the shadow.

    Declaration

    Swift

    public var cancelButtonShadowRadius: CGFloat
  • The offset (in points) of the shadow.

    Declaration

    Swift

    public var cancelButtonShadowOffset: CGSize

Processing view

  • The text alignment for labels on the processing view.

    Declaration

    Swift

    public var processingLabelsTextAlignment: NSTextAlignment

Animations

  • The path to a custom Lottie animation (found in the app bundle) that demonstrates selfie capture.

    Declaration

    Swift

    public var selfieAnimation: AnimationAsset?
  • The path to a custom Lottie animation (found in the app bundle) that shows loading activity.

    Declaration

    Swift

    public var loadingAnimation: AnimationAsset?
  • The path to a custom Lottie animation (found in the app bundle) that shows processing activity.

    Declaration

    Swift

    public var processingAnimation: AnimationAsset?
  • The path to a custom asset that’s shown when an inquiry succeeds. The asset can be:

    • an AnimationAsset (requires path and size to a Lottie animation found in the app bundle)
    • an SVGAsset (requires path and size to a SVG image found in the app bundle)
    • an ImageAsset (requires name and size of a JPG/PNG image found in the app bundle)

    Declaration

    Swift

    public var successAsset: ThemeAsset?
  • The path to a custom asset that’s shown when an inquiry fails. The asset can be:

    • an AnimationAsset (requires path and size to a Lottie animation found in the app bundle)
    • an SVGAsset (requires path and size to a SVG image found in the app bundle)
    • an ImageAsset (requires name and size of a JPG/PNG image found in the app bundle)

    Declaration

    Swift

    public var failedAsset: ThemeAsset?
  • The path to a custom asset that’s shown when a verification fails. The asset can be:

    • an AnimationAsset (requires path and size to a Lottie animation found in the app bundle)
    • an SVGAsset (requires path and size to a SVG image found in the app bundle)
    • an ImageAsset (requires name and size of a JPG/PNG image found in the app bundle)

    Declaration

    Swift

    public var verificationFailedAsset: ThemeAsset?

Separator

  • The border color for separators.

    Declaration

    Swift

    public var separatorColor: UIColor

Miscellaneous

  • Whether or not to show the icons next to government ID types

    Declaration

    Swift

    public var showGovernmentIdIcons: Bool

Camera

  • The text color for camera hint titles.

    Declaration

    Swift

    public var cameraInstructionsTextColor: UIColor
  • The font for camera hint labels.

    Declaration

    Swift

    public var cameraInstructionsTextFont: UIFont
  • The text alignment for camera hint labels.

    Declaration

    Swift

    public var cameraInstructionTextAlignment: NSTextAlignment
  • The background color for the button that takes a photo.

    Declaration

    Swift

    public var cameraButtonBackgroundColor: UIColor
  • The text color for the button that takes a photo.

    Declaration

    Swift

    public var cameraButtonTextColor: UIColor
  • The background color for the button that re-takes a photo.

    Declaration

    Swift

    public var cameraButtonAlternateBackgroundColor: UIColor
  • The text color for the button that re-takes a photo.

    Declaration

    Swift

    public var cameraButtonAlternateTextColor: UIColor
  • The text color for camera hint titles.

    Declaration

    Swift

    public var cameraHintTextColor: UIColor
  • The font for camera hint labels.

    Declaration

    Swift

    public var cameraHintTextFont: UIFont
  • The text color for camera guide hint titles.

    Declaration

    Swift

    public var cameraGuideHintTextColor: UIColor
  • The text color for the [ ] corners shown as a guide when the user is taking a photo.

    Declaration

    Swift

    public var cameraGuideCornersColor: UIColor
  • The font for camera guide hint labels.

    Declaration

    Swift

    public var cameraGuideHintTextFont: UIFont
  • Constructor.

    Declaration

    Swift

    public init()

Asset Type Definitions