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 their VOVoucher.
  • VORevealModeContribute: VOVoucherRevealViewController is shown to a user who wants to contribute to the VOVoucher.
  • VORevealModeSent: VOVoucherRevealViewController is shown to creator when they are viewing a previously sent VOVoucher.
  • VORevealModeReceived: VOVoucherRevealViewController is shown to recipient when they are viewing a previously received VOVoucher.