Skip to content

Commit

Permalink
make ios webview inspectable by safari in release
Browse files Browse the repository at this point in the history
  • Loading branch information
futurepaul committed Jun 10, 2024
1 parent 4cab32d commit 549a810
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ios/App/App/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 549a810

Please sign in to comment.