mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2025-12-17 06:14:21 +01:00
make ios webview inspectable by safari in release
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user