Receiving a Voucher
The reveal flow allows a user to open a voucher and view its contents. Use the VOVoucherCreationManager
to start the reveal flow for a voucher.
[creationManager.revealFlowCoordinator updateCurrentVoucherWithNewVoucher:voucher];
[creationManager.revealFlowCoordinator startFlowOnViewController:self revealMode:revealMode backgroundColor:nil];
creationManager.revealFlowCoordinator.updateCurrentVoucher(withNewVoucher: voucher)
creationManager.revealFlowCoordinator.startFlow(on: self, revealMode: revealMode, backgroundColor: nil)
The revealMode
can be one of the of following values:
VORevealModeDefault
:VOVoucherRevealViewController
is shown to the claimer.VORevealModePreview
:VOVoucherRevealViewController
is shown to the creator when they are previewing theirVOVoucher
.VORevealModeContribute
:VOVoucherRevealViewController
is shown to a user who wants to contribute to theVOVoucher
.VORevealModeSent
:VOVoucherRevealViewController
is shown to creator when they are viewing a previously sentVOVoucher
.VORevealModeReceived
:VOVoucherRevealViewController
is shown to recipient when they are viewing a previously receivedVOVoucher
.