Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

### Features

- Enable WebKit inspector for debugging on iOS 16.4+ in DEBUG builds.


## 2.2.1

### Fixes
Expand Down
5 changes: 5 additions & 0 deletions Sources/OSInAppBrowserLib/WebView/OSIABWebViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ class OSIABWebViewModel: NSObject, ObservableObject {
self.webView.customUserAgent = customUserAgent
self.webView.navigationDelegate = self
self.webView.uiDelegate = self
#if DEBUG
if #available(iOS 16.4, *) {
self.webView.isInspectable = true
}
#endif
self.setupBindings(uiModel.showURL, uiModel.showToolbar, uiModel.showNavigationButtons)
}

Expand Down
Loading