diff --git a/ios/Plugin/PrivacyScreen.swift b/ios/Plugin/PrivacyScreen.swift index 4501ee4..1b57dc1 100644 --- a/ios/Plugin/PrivacyScreen.swift +++ b/ios/Plugin/PrivacyScreen.swift @@ -68,9 +68,13 @@ import UIKit while let topVC = rootVC.presentedViewController { rootVC = topVC } - rootVC.present(self.privacyViewController, animated: false, completion: nil) + if rootVC.presentedViewController != self.privacyViewController { + rootVC.present(self.privacyViewController, animated: false, completion: nil) + } } else { - self.plugin.bridge?.viewController?.present(self.privacyViewController, animated: false, completion: nil) + if self.plugin.bridge?.viewController?.presentedViewController != self.privacyViewController { + self.plugin.bridge?.viewController?.present(self.privacyViewController, animated: false, completion: nil) + } } } }