Skip to content

TryYourSize.Configuration

TypeTryYourSize (Swift)

Options of the client.

appearanceAppearanceRequired

Colours, font and corner radius for the button and the window.

localeString?Required

BCP 47 language for the button and the window; nil: the app's preferred language.

bundleIdentifierString?Required

The app's identity registered for the store; nil: Bundle.main.bundleIdentifier.

embedOriginURLRequired

Our window's origin (change only for staging or local development).

inspectableBoolRequired

Lets Safari's Web Inspector attach to the window (iOS 16.4+). Debug builds only.

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

Was this page helpful?