Skip to content

Basic Usage

This guide covers the fundamental usage of the Aiuta iOS SDK in your application.

import AiutaSDK

Setup

First, make sure you've configured the SDK as described in the Configuration guide.

await Aiuta.setup(configuration: Aiuta.Configuration) // (1)!
  1. Your configuration for Aiuta

    Please refer to the Configuration guide.

Virtual Try-On

To start the virtual try-on flow for a product:

await Aiuta.tryOn(product: Aiuta.Product) // (1)!
  1. Your product info for Aiuta

    Please refer to the product scheme

Generation History

To show the user's try-on history:

await Aiuta.showHistory()

Current State

You can check at any time whether the SDK UI is currently displayed:

let isDisplayed = await Aiuta.isForeground

Next Step