TryYourSize.Configuration
Options of the client.
Properties
Section titled “Properties”appearanceAppearanceRequiredColours, font and corner radius for the button and the window.
localeString?RequiredBCP 47 language for the button and the window; nil: the app's preferred language.
bundleIdentifierString?RequiredThe app's identity registered for the store; nil: Bundle.main.bundleIdentifier.
embedOriginURLRequiredOur window's origin (change only for staging or local development).
inspectableBoolRequiredLets Safari's Web Inspector attach to the window (iOS 16.4+). Debug builds only.
Example
Section titled “Example”let tys = try TryYourSize(publishableKey: "pk_test_…", configuration: .init( appearance: Appearance(borderRadius: 10), locale: "es"))val tys = TryYourSize(context, "pk_test_…", TryYourSize.Configuration( appearance = Appearance(borderRadius = 10f), locale = "es",))await configure("pk_test_…", { appearance: { variables: { borderRadius: 10 } }, locale: "es" });final tys = await TryYourSize.create('pk_test_…', appearance: const Appearance(borderRadius: 10), locale: 'es');Was this page helpful?
Thank you. We read every answer.