Skip to content

Commit

Permalink
Merge pull request #999 from kiwix/993-deleting-a-book-should-delete-…
Browse files Browse the repository at this point in the history
…related-tabs

Avoid crash on iOS 18
  • Loading branch information
kelson42 authored Oct 6, 2024
2 parents c25cbff + ec101e5 commit 1f28cbd
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 1f28cbd

Please sign in to comment.