Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Adds isInspectable check to WebViewController
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariflo committed Apr 7, 2023
1 parent 6bacce5 commit 8a29a45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/MagicSDK/Core/Relayer/WebViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,10 @@ class WebViewController: UIViewController, WKUIDelegate, WKScriptMessageHandler,

webView.uiDelegate = self

if #available(macOS 13.3, iOS 16.4, tvOS 16.4, *) {
webView.isInspectable = true
}

// conforming WKNavigationDelegate
webView.navigationDelegate = self

Expand Down

2 comments on commit 8a29a45

@vishal-zest
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is causing issue, can you pls double check it is not compiling

@Ariflo
Copy link
Contributor Author

@Ariflo Ariflo commented on 8a29a45 Apr 14, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is causing issue, can you pls double check it is not compiling

@vishal-zest Sorry to hear your project isn't compiling. Could you try using this SimpleMagiciOSDemoApp I built to troubleshoot? Atm, I'm able to compile with it. 🤔

Please sign in to comment.