From dbea371c7a1a9d8ab2202d3b852c3671a806462d Mon Sep 17 00:00:00 2001 From: Victor Forslund Date: Fri, 16 Aug 2024 14:07:33 +0200 Subject: [PATCH] fix(ios): black screen (#107) --- ios/Plugin/PrivacyScreen.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/Plugin/PrivacyScreen.swift b/ios/Plugin/PrivacyScreen.swift index 57b3b62..5be6f4b 100644 --- a/ios/Plugin/PrivacyScreen.swift +++ b/ios/Plugin/PrivacyScreen.swift @@ -71,7 +71,7 @@ import UIKit while let topVC = rootVC.presentedViewController { rootVC = topVC } - if rootVC.presentedViewController != self.privacyViewController { + if rootVC.presentedViewController != self.privacyViewController && !self.privacyViewController.isBeingPresented && !self.privacyViewController.isBeingDismissed { rootVC.present(self.privacyViewController, animated: false, completion: nil) } } else {