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

Commit

Permalink
Merge pull request #23 from magiclabs/ariflo-sc-75416-adds-webview-in…
Browse files Browse the repository at this point in the history
…spector

Adds `isInspectable` check to WebViewController
  • Loading branch information
Ariflo authored Apr 7, 2023
2 parents 6bacce5 + d594710 commit e00b89d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MagicSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
Pod::Spec.new do |s|
s.name = 'MagicSDK'
s.version = '8.0.0'
s.version = '8.0.1'
s.summary = 'Magic IOS SDK'

s.description = <<-DESC
Expand Down
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

0 comments on commit e00b89d

Please sign in to comment.