Predefined steps

In this section, I will describe all available steps in the current framework, their configs and will show how they look like.

Right now all steps localized in Russian and English.

SignaturePad

SignaturePad helps you to collect customer signature as an image.

Input

  • config - configuration for this step

struct Config {
    var signatureColor: UIColor
    var signatureWidth: CGFloat
    var signatureBorderColor: UIColor
    var signatureBorderWidth: CGFloat
    var title: String
    var retryButtonTintColor: UIColor
    var retryButtonTitle: String

    var continueButtonBackground: UIColor
    var continueButtonTintColor: UIColor
    var continueButtonTitle: String
}

Output

As output, you will receive a UIImage signature.

OTPStep

OTPStep provides ability to verify client's email or phone.

Input

  • visibility - with this property you can setup what kind of verification you will do

public enum OTPVisibility {
    case phone
    case email
    case both
}

Output

As output, you will receive a Response struct. Which lets you understand what value was verified succesfully by the system.

public struct Response {
	public let type: OTPMode
	public let value: String
	public let code: String
}

Diia

Diia provides integration with ukrainian application "Дія" by the Ministry of Digital Transformation in Ukraine. You can use this step ONLY if your backend implements all needed services. Cloud backend, right now, does not provide this functionality.

Input

  • config - configuration for this step

struct Config {
    public struct Intro {
        public var title: String
        public var description: String
        public var mainBtnBackgroundColor: UIColor
        public var mainBtnTintColor: UIColor
        public var mainBtnTitle: String
    }

    public struct Result {
        public var successTitle: String
        public var failTitle: String
        public var failDescription: String
        public var mainBtnBackgroundColor: UIColor
        public var mainBtnTintColor: UIColor
        public var mainBtnTitleSuccess: String
        public var mainBtnTitleFail: String
    }
    public var intro: Intro
    public var result: Result
}

Output

As output, you will receive a UIImage contains photo from a user document.

UIKitSelfieWithConfirm

Use this step if you want to take a person picture with a document and then confirm it.

Output:

struct StepResult {
    public let image: UIImage
    public let confirmResult: DocumentConfirm.StepResult
}
  • image: UIImage - the main image

  • confirmResult: DocumentConfirm.StepResult - DocumentConfirm step result.

Last updated