Skip to content

Commit

Permalink
Avoid crash on iOS 18
Browse files Browse the repository at this point in the history
  • Loading branch information
BPerlakiH committed Oct 5, 2024
1 parent c25cbff commit ec101e5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Views/BuildingBlocks/WebView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ final class WebViewController: UIViewController {

override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
webView.setValue(view.safeAreaInsets, forKey: "_obscuredInsets")
if #unavailable(iOS 18.0) {
webView.setValue(view.safeAreaInsets, forKey: "_obscuredInsets")
}
layoutSubject.send()
}
}
Expand Down

0 comments on commit ec101e5

Please sign in to comment.