diff --git a/Core/Core/View/Base/Webview/WebView.swift b/Core/Core/View/Base/Webview/WebView.swift index 78d974b29..f23097445 100644 --- a/Core/Core/View/Base/Webview/WebView.swift +++ b/Core/Core/View/Base/Webview/WebView.swift @@ -136,6 +136,17 @@ public struct WebView: UIViewRepresentable { handler: { _ in completionHandler(false) })) + + if let presenter = alertController.popoverPresentationController { + let view = UIApplication.topViewController()?.view + presenter.sourceView = view + presenter.sourceRect = CGRect( + x: view?.bounds.midX ?? 0, + y: view?.bounds.midY ?? 0, + width: 0, + height: 0 + ) + } UIApplication.topViewController()?.present(alertController, animated: true, completion: nil) }