Skip to content

Commit 62e8f00

Browse files
authored
Merge pull request #38 from OutSystems/misc/webview-inspectable
feat: enable webview inspector
2 parents 5b58eee + f31f5e9 commit 62e8f00

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [Unreleased]
8+
9+
### Features
10+
11+
- Enable WebKit inspector for debugging on iOS 16.4+ in DEBUG builds.
12+
13+
714
## 2.2.1
815

916
### Fixes

Sources/OSInAppBrowserLib/WebView/OSIABWebViewModel.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,11 @@ class OSIABWebViewModel: NSObject, ObservableObject {
7474
self.webView.customUserAgent = customUserAgent
7575
self.webView.navigationDelegate = self
7676
self.webView.uiDelegate = self
77+
#if DEBUG
78+
if #available(iOS 16.4, *) {
79+
self.webView.isInspectable = true
80+
}
81+
#endif
7782
self.setupBindings(uiModel.showURL, uiModel.showToolbar, uiModel.showNavigationButtons)
7883
}
7984

0 commit comments

Comments
 (0)