make ios webview inspectable by safari in release

This commit is contained in:
Paul Miller
2024-06-10 11:14:45 -05:00
parent 4cab32d8ca
commit 549a810dfd

View File

@@ -8,6 +8,14 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
if #available(iOS 16.4, *) {
DispatchQueue.main.asyncAfter(deadline: .now() + 5.0) {
if let vc = self.window?.rootViewController as? CAPBridgeViewController {
vc.bridgedWebView?.isInspectable = true;
}
}
}
return true
}