Skip to content

Commit 5dc89b7

Browse files
authored
Merge pull request #40 from OutSystems/fix/RMET-4517/iframe
fix: allow iframes to load with OpenInWebView
2 parents 79f2696 + 58e5bb9 commit 5dc89b7

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,18 @@ 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+
### Fixes
10+
11+
- Fix iframe loading issue. [RMET-4517](https://outsystemsrd.atlassian.net/browse/RMET-4517).
12+
713
## 2.3.0
814

915
### Features
1016

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

13-
1419
## 2.2.1
1520

1621
### Fixes

Sources/OSInAppBrowserLib/WebView/OSIABWebViewModel.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,9 @@ class OSIABWebViewModel: NSObject, ObservableObject {
186186

187187
// MARK: - WKNavigationDelegate implementation
188188
extension OSIABWebViewModel: WKNavigationDelegate {
189+
189190
func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction, decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
190-
guard let url = navigationAction.request.url, url == navigationAction.request.mainDocumentURL else { return decisionHandler(.cancel) }
191+
guard let url = navigationAction.request.url else { return decisionHandler(.cancel) }
191192

192193
// if is an app store, tel, sms, mailto or geo link, let the system handle it, otherwise it fails to load it
193194
if ["itms-appss", "itms-apps", "tel", "sms", "mailto", "geo"].contains(url.scheme) {

0 commit comments

Comments
 (0)