Create Personalization Option Customization
Each Create Personalization has a list of configurable options. Create Personalizations subclass from PersonalizationOption. On all PersonalizationOptions there are the following options:
canAddMultiple - Whether this option allows multiple items of this type. The only options that allow multiple are Photo, Video, Animated, Note.
carouselImage - The image shown in the VoucherCreationViewController carousel for this personalization option.
carouselText - The text shown in the VoucherCreationViewController carousel for this personalization option.
PersonalizationOptions are immutable after creation. They are initialized with a PersonalizationOptionBuilder to override any properties.
Example initialization
let option = PhotoPersonalizationOption(builderBlock:{(builder) in
// set properties here
builder!.canAddMultiple = false // property on all personalization options
builder!.canUploadPhotos = false // property only on PhotoPersonalizationOption
builder!.canAddGoogleImages = true
builder!.canTakePhotos = true
builder!.suggestedSearchTerms = ["one", "two", "three"]
})
View on GitHub
Changing Customization Options (swift) Reference