PreviewVoucherContentsViewController
@interface PreviewVoucherContentsViewController
: UIViewController <PreviewVoucherContentsViewControllerProtocol>
The PreviewVoucherContentsViewController is the screen responsible for presenting all items in a Voucher 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
PersonalizationOptions.Declaration
Objective-C
- (void)setPersonalizationOptionsForDisplay: (nonnull NSArray<PersonalizationOption *> *)personalizationOptions;Swift
func setPersonalizationOptionsForDisplay(_ personalizationOptions: [PersonalizationOption])Parameters
personalizationOptions- An array of
PersonalizationOptions containing personalizations accessible to the user. -
After user finishes editing a CreationItemImageView instance, VoucherCreationViewController calls this method to pass it to the view controller.
Declaration
Objective-C
- (void)updateWithModifiedCreationItem: (nonnull CreationItemImageView *)creationItem;Swift
func update(withModifiedCreationItem creationItem: CreationItemImageView)Parameters
creationItem- CreationItemImageView that was just modified; used to identify the cell to animate (shrink and expand).
View on GitHub
PreviewVoucherContentsViewController Class Reference