VOPreviewVoucherContentsViewController
@interface VOPreviewVoucherContentsViewController
: UIViewController <VOPreviewVoucherContentsViewControllerProtocol>
The VOPreviewVoucherContentsViewController is the screen responsible for presenting all items in a VOVoucher and gives users the
option to make changes to all editable items.
-
Formats a gift card label with the chosen monetary value.
Declaration
Objective-C
- (void)formatGiftCardLabel:(nonnull NSString *)formattedVoucherMoneyAmount;Swift
func formatGiftCardLabel(_ formattedVoucherMoneyAmount: String)Parameters
formattedVoucherMoneyAmount- The formatted money amount for a gift card.
-
Sets the view controller’s list of
VOPersonalizationOptions.Declaration
Objective-C
- (void)setPersonalizationOptionsForDisplay: (nonnull NSArray<VOPersonalizationOption *> *)personalizationOptions;Swift
func setPersonalizationOptionsForDisplay(_ personalizationOptions: [VOPersonalizationOption])Parameters
personalizationOptions- An array of
VOPersonalizationOptions containing personalizations accessible to the user. -
After user finishes editing a VOCreationItemView instance, the voucher creation view controller calls this method to pass it to itself.
Declaration
Objective-C
- (void)updateWithModifiedCreationItem: (nonnull VOCreationItemView *)creationItem;Swift
func update(withModifiedCreationItem creationItem: VOCreationItemView)Parameters
creationItem- VOCreationItemView that was just modified; used to identify the cell to animate (shrink and expand).
View on GitHub
VOPreviewVoucherContentsViewController Class Reference