Ir al contenido

present(product:step:from:)

Esta página aún no está disponible en tu idioma.

MethodTryYourSize (Swift)

Opens the measuring / try-on window for a product, as a sheet over presenter (default: the app’s top-most view controller).

Swiping the sheet down asks the window first: with unsaved measurements, the shopper confirms.

public func present(product: String, step: OpenStep? = nil, from presenter: UIViewController? = nil)
productStringObligatorio

Your product ID or SKU.

stepOpenStep?Opcional= nil

.create, .improve or .view (default: where the shopper is).

fromUIViewController?Opcional= nil

The presenting view controller (default: the top-most one).

tys.present(product: "SKU-123") // or step: .view, from: viewController

¿Te ha resultado útil esta página?