Configuration Guide¶
The Aiuta iOS SDK is highly configurable to meet your specific needs.
Setting Up¶
await Aiuta.setup(configuration: Aiuta.Configuration)
Aiuta.Configuration
is an enum
representing the configuration options for the Aiuta SDK. It contains several configuration presets that you can select depending on how detailed you want to customize the appearance and behavior of the SDK.
These presets contain the default appearance, feature set, and behavior.
.debug(auth: Aiuta.Auth) // (1)!
-
A default configuration for development and testing.
This configuration is optimized for debug builds and includes all recommended features and settings for development purposes. It performs validation checks on the
Info.plist
file and triggers afatalError()
if any required keys are missing. This ensures that issues are caught early during development.
.release(auth: Aiuta.Auth) // (1)!
-
A default configuration for production use.
This configuration is optimized for release builds and includes all recommended features and settings for production environments. It skips all validation checks to prioritize stability and performance. Use this configuration when deploying the application to end users.
.custom(auth: Aiuta.Auth, // (1)!
userInterface: UserInterface = .default, // (2)!
features: Features = .default, // (3)!
analytics: Aiuta.Analytics = .none, // (4)!
debugSettings: DebugSettings = .release) // (5)!
-
A fully customizable configuration for the SDK.
This configuration allows developers to customize every aspect of the SDK, including authentication, user interface, features, analytics, and debug settings. Use this option to tailor the SDK to specific application requirements.
-
userInterface configuration of the presentation style, swipe-to-dismiss policy, and UI components themes for the Aiuta SDK.
-
Describes the set of features enabled in the SDK for the user and thier interaction with the app.
-
Allows to receive analytics events from the SDK and send them to your analytics provider.
-
debugSettings controls the logging settings and validation policies for various parameters.
The Aiuta SDK for iOS employs a standardized configuration scheme for custom
case consistent with our other SDKs. Just as the Aiuta.Configuration
and its custom associated values have been modified to adhere to the naming conventions, all other nested cases will be conformed similarly.
Please refer to the configuration scheme
Example compliance with User Interface Scheme
enum Aiuta.Configuration.UserInterface {
case `default`
case custom(theme: Theme = .aiuta(scheme: .light),
presentationStyle: PresentationStyle = .pageSheet,
swipeToDismissPolicy: SwipeToDismissPolicy = .protectTheNecessaryPages)
}
Next Step¶
- Learn how to initialize and use the SDK
- Try with test configuration