From 622020b37ff2cefbc48b88a38795e29b099267ef Mon Sep 17 00:00:00 2001 From: Jon Petersson Date: Fri, 22 Sep 2023 15:21:24 +0200 Subject: [PATCH] Fix black screen bug if redeem voucher view if canceled to early --- .../RedeemVoucher/RedeemVoucherViewController.swift | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/MullvadVPN/View controllers/RedeemVoucher/RedeemVoucherViewController.swift b/ios/MullvadVPN/View controllers/RedeemVoucher/RedeemVoucherViewController.swift index 9195e5c5d4e1..d5757b30268d 100644 --- a/ios/MullvadVPN/View controllers/RedeemVoucher/RedeemVoucherViewController.swift +++ b/ios/MullvadVPN/View controllers/RedeemVoucher/RedeemVoucherViewController.swift @@ -30,6 +30,8 @@ class RedeemVoucherViewController: UIViewController, UINavigationControllerDeleg ) { self.contentView = RedeemVoucherContentView(configuration: configuration) self.interactor = interactor + self.contentView.isUserInteractionEnabled = false + super.init(nibName: nil, bundle: nil) } @@ -67,6 +69,8 @@ class RedeemVoucherViewController: UIViewController, UINavigationControllerDeleg override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) + + contentView.isUserInteractionEnabled = true contentView.isEditing = true }