Configuration Guide¶
The Aiuta iOS SDK is highly configurable to meet your specific needs.
Setting Up¶
Aiuta.setup(configuration: Aiuta.Configuration)
Aiuta.Configuration is a struct representing the configuration options for the Aiuta SDK. It offers a ready-made .default(…) preset that you can adopt as-is or extend, plus a full initializer for complete customization — depending on how detailed you want to customize the appearance and behavior of the SDK.
This preset contains the default appearance, feature set, and behavior.
.default(auth: Aiuta.Auth) // (1)!
-
A ready-to-use configuration with all recommended features and settings.
It authenticates the SDK and uses the builtin icons and images. Whether the configuration is optimized for development or production is controlled by the
debugSettingsparameter (see below), which defaults to.release.
.default(auth: Aiuta.Auth, // (1)!
debugSettings: DebugSettings = .release) // (2)!
-
debugSettings controls logging and validation policies.
.debugis intended for development and testing. It enables logging and performs validation checks — for example on theInfo.plistfile — triggering afatalError()if any required keys are missing, so that issues are caught early during development..releaseis the default and is intended for production. It disables logging and skips all validation checks to prioritize stability and performance. Use it when deploying the application to end users.
Aiuta.Configuration(auth: Aiuta.Auth, // (1)!
userInterface: UserInterface, // (2)!
features: Features, // (3)!
analytics: Aiuta.Analytics?, // (4)!
debugSettings: DebugSettings) // (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 consistent with our other SDKs. Just as Aiuta.Configuration and its initializer parameters adhere to the naming conventions, all other nested types are conformed similarly.
Please refer to the configuration scheme
Example compliance with User Interface Scheme
struct Aiuta.Configuration.UserInterface {
init(theme: Theme,
presentationStyle: PresentationStyle,
swipeToDismissPolicy: SwipeToDismissPolicy)
}
Next Step¶
- Learn how to initialize and use the SDK
- Try with test configuration