Skip to content

Recommendation

TypeTryYourSize (Swift)

The shopper’s recommended size for one product, in the store’s own size labels.

productStringRequired
statusStatusRequired
sizeString?Required

The recommended size in the store's label (its size map), or nil.

studioSizeString?Required

The same size as entered in TryYourSize Studio, or nil.

wearableSizes[String]?Required

Sizes that can be worn on this body, in the store's labels (when simulated).

let rec = try await tys.recommendation(for: "SKU-123")
if rec.status == .ready, let size = rec.size { selectedSize = size }

status: .ready (size is set), .computing, .noSize ("none" on the web: no size can be worn), .signedOut, .unavailable.

Was this page helpful?