present(product:step:from:)
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)Parameters
Section titled “Parameters”productStringRequiredYour product ID or SKU.
stepOpenStep?Optional= nil.create, .improve or .view (default: where the shopper is).
fromUIViewController?Optional= nilThe presenting view controller (default: the top-most one).
Example
Section titled “Example”tys.present(product: "SKU-123") // or step: .view, from: viewControllertys.present(activity, "SKU-123") // or step = OpenStep.VIEWpresent("SKU-123"); // or present("SKU-123", "view")await tys.present('SKU-123'); // or step: OpenStep.viewWas this page helpful?
Thank you. We read every answer.