File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -119,9 +119,10 @@ class OpenHABWebViewController: OpenHABViewController {
119119 super. viewDidLoad ( )
120120 navigationController? . interactivePopGestureRecognizer? . isEnabled = true
121121 attachWebViewToLayout ( webView)
122+ webView. allowsBackForwardNavigationGestures = true
122123
123124 loadingOverlay. backgroundColor = . systemBackground
124- loadingOverlay. isHidden = true
125+ loadingOverlay. isHidden = false
125126 loadingOverlay. translatesAutoresizingMaskIntoConstraints = false
126127 view. addSubview ( loadingOverlay)
127128 NSLayoutConstraint . activate ( [
@@ -517,6 +518,8 @@ class OpenHABWebViewController: OpenHABViewController {
517518 webview. isInspectable = true
518519 }
519520
521+ webview. allowsBackForwardNavigationGestures = true
522+
520523 // Avoid safe-area content insets which can leave a small gap at the bottom on iPad until a reload.
521524 webview. scrollView. contentInsetAdjustmentBehavior = . never
522525 webview. scrollView. contentInset = . zero
Original file line number Diff line number Diff line change @@ -143,6 +143,7 @@ struct WebRowView: UIViewRepresentable {
143143 func makeUIView( context: Context ) -> WKWebView {
144144 let homeId = Preferences . shared. currentHomePreferences. id
145145 let webView = WKWebView ( frame: . zero, configuration: WebRowViewConfigurationFactory . make ( homeId: homeId) )
146+ webView. allowsBackForwardNavigationGestures = true
146147 webView. navigationDelegate = context. coordinator
147148 return webView
148149 }
You can’t perform that action at this time.
0 commit comments