Classes

  • The GiniVisionDocumentBuilder provides a way to build a GiniVisionDocument from a Data object and a DocumentSource. Additionally the DocumentImportMethod can bet set after builder iniatilization. This is an example of how a GiniVisionDocument should be built when it has been imported with the Open with feature.

    let documentBuilder = GiniVisionDocumentBuilder(data: data, documentSource: .appName(name: sourceApplication))
    documentBuilder.importMethod = .openWith
    let document = documentBuilder.build()
    do {
    try document?.validate()
    ...
    } catch {
    ...
    }
    
    See more

    Declaration

    Swift

    public class GiniVisionDocumentBuilder : NSObject
  • Undocumented

    See more

    Declaration

    Swift

    public final class GiniVisionDocumentValidator
  • The HelpMenuViewController provides explanations on how to take better pictures, how to use the Open with feature and which formats are supported by the Gini Vision Library.

    See more

    Declaration

    Swift

    final public class HelpMenuViewController : UITableViewController
  • The ImageAnalysisNoResultsViewController provides a custom no results screen which shows some capture suggestions when there is no results when analysing an image.

    See more

    Declaration

    Swift

    public final class ImageAnalysisNoResultsViewController : UIViewController
    extension ImageAnalysisNoResultsViewController: UICollectionViewDataSource
    extension ImageAnalysisNoResultsViewController: UICollectionViewDelegateFlowLayout
  • Undocumented

    See more

    Declaration

    Swift

    public final class MultipageReviewViewController : UIViewController
    extension MultipageReviewViewController: UICollectionViewDataSource
    extension MultipageReviewViewController: UICollectionViewDelegateFlowLayout
  • Custom view to easily create onboarding pages which can then be used in OnboardingViewController. Simply pass an image and a name. Both will be beautifully aligned and displayed to the user.

    Note

    The text length should not exceed 50 characters, depending on the font used, and should preferably stretch out over three lines.
    See more

    Declaration

    Swift

    @objcMembers
    public final class OnboardingPage : UIView
  • The OnboardingViewController provides a custom onboarding screen which presents some introductory screens to the user on how to get the camera in a perfect position etc. By default, three screens are pre-configured.

    To allow displaying the onboarding as a transparent modal view, set the modalPresentationStyle of the container class to .OverCurrentContext. Add a blank page at the end to make it possible to “swipe away” the onboarding. To achieve this, the container class needs to implement UIScrollViewDelegate and dismiss the view when the last (empty) page is reached. With the UIScrollViewDelegate callbacks it is also possible to add a custom page control and update the current page accordingly.

    Use the OnboardingPage class to quickly create custom onboarding pages in a nice consistent design. See below how easy it is to present an custom onboarding view controller.

    let pages = [
        OnboardingPage(image: myOnboardingImage1, text: "My Onboarding Page 1"),
        OnboardingPage(image: myOnboardingImage2, text: "My Onboarding Page 2"),
        OnboardingPage(image: myOnboardingImage3, text: "My Onboarding Page 3")
        OnboardingPage(image: myOnboardingImage4, text: "My Onboarding Page 4")
    ]
    let onboardingController = OnboardingViewController(pages: pages, scrollViewDelegate: self)
    presentViewController(onboardingController, animated: true, completion: nil)
    

    Note

    Component API only.
    See more

    Declaration

    Swift

    @objcMembers
    public final class OnboardingViewController : UIViewController
  • The ReviewViewController provides a custom review screen. The user has the option to check for blurriness and document orientation. If the result is not satisfying, the user can either return to the camera screen or rotate the photo by steps of 90 degrees. The photo should be uploaded to Gini’s backend immediately after having been taken as it is safe to assume that in most cases the photo is good enough to be processed further.

    Note

    Component API only.
    See more

    Declaration

    Swift

    @objcMembers
    public final class ReviewViewController : UIViewController
    extension ReviewViewController: UIScrollViewDelegate