Picture Step
The picture step allows users to pick between a predetermined list of raster assets configured in the workflow editor. The supported extension types are currently png & jpg.
Selecting a picture
The base option type for an picture step is the Image asset. These are images that you have uploaded to the spiff hub. After configuring an option with multiple images in the hub you may select a specific image by passing the corresponding variant to the selectVariant function.
This call is asynchronous as we may need to do processing of the image for optimization purposes. Please await this function before allowing the user to select other variants.
await pictureStep.selectVariant(variant);