# TryYourSize.Configuration

> Options of the client.

Source: https://docs.tryyoursize.com/reference/ios/configuration/

*Type* · `TryYourSize (Swift)`

Options of the client.

## Properties

- **`appearance`** (`Appearance`, required): Colours, font and corner radius for the button and the window.
- **`locale`** (`String?`, required): BCP 47 language for the button and the window; nil: the app's preferred language.
- **`bundleIdentifier`** (`String?`, required): The app's identity registered for the store; nil: `Bundle.main.bundleIdentifier`.
- **`embedOrigin`** (`URL`, required): Our window's origin (change only for staging or local development).
- **`inspectable`** (`Bool`, required): Lets Safari's Web Inspector attach to the window (iOS 16.4+). Debug builds only.

## Example

**Swift**

```swift
let tys = try TryYourSize(publishableKey: "pk_test_…", configuration: .init(
    appearance: Appearance(borderRadius: 10),
    locale: "es"))
```

**Kotlin**

```kotlin
val tys = TryYourSize(context, "pk_test_…", TryYourSize.Configuration(
    appearance = Appearance(borderRadius = 10f),
    locale = "es",
))
```

**React Native**

```tsx
await configure("pk_test_…", { appearance: { variables: { borderRadius: 10 } }, locale: "es" });
```

**Flutter**

```dart
final tys = await TryYourSize.create('pk_test_…', appearance: const Appearance(borderRadius: 10), locale: 'es');
```
