Skip to content

present(product:step:from:)

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)
productStringRequired

Your product ID or SKU.

stepOpenStep?Optional= nil

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

fromUIViewController?Optional= nil

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

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

Was this page helpful?