TryYourSize.Configuration
Esta página aún no está disponible en tu idioma.
Options of the client.
Properties
Section titled “Properties”appearanceAppearanceObligatorioColours, font and corner radius for the button and the window.
localeString?ObligatorioBCP 47 language for the button and the window; nil: the app's preferred language.
bundleIdentifierString?ObligatorioThe app's identity registered for the store; nil: Bundle.main.bundleIdentifier.
embedOriginURLObligatorioOur window's origin (change only for staging or local development).
inspectableBoolObligatorioLets 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');¿Te ha resultado útil esta página?
Gracias. Leemos todas las respuestas.