Your home as a live 3D model in the Mac menu bar and on iPhone — lights and ACs via Smart Life, Home Assistant, Philips Hue and Apple Home.
iPhone: fix the crash on iOS 17 at the first touch; build 7
0xProbability8c7511643bcf
diff --git a/ios/Config/Base.xcconfig b/ios/Config/Base.xcconfigindex 016b73f..4d40e0b 100644--- a/ios/Config/Base.xcconfig+++ b/ios/Config/Base.xcconfig@@ -1,6 +1,6 @@// Version of the iPhone app. CURRENT_PROJECT_VERSION is the build number TestFlight sees.MARKETING_VERSION = 1.0.0-CURRENT_PROJECT_VERSION = 6+CURRENT_PROJECT_VERSION = 7CODE_SIGN_STYLE = Automaticdiff --git a/ios/Sources/HomeWeb.swift b/ios/Sources/HomeWeb.swiftindex 3c4da20..04b6430 100644--- a/ios/Sources/HomeWeb.swift+++ b/ios/Sources/HomeWeb.swift@@ -37,8 +37,10 @@ final class HomeWeb: NSObject, WKScriptMessageHandler, WKNavigationDelegate {webView.backgroundColor = UIColor(Theme.background)webView.scrollView.backgroundColor = UIColor(Theme.background)webView.scrollView.isScrollEnabled = false- // The editor's text fields must not zoom the page in, nor drag it about.- webView.scrollView.pinchGestureRecognizer?.isEnabled = false+ // The page itself keeps text fields from zooming it in (`maximum-scale=1` in index.html).+ // Never disable the scroll view's pinch recognizer for that: WebKit's own gestures depend+ // on it, and on iOS 17 a disabled one leaves a hole in UIKit's gesture graph that aborts+ // the app on the first touch.webView.scrollView.bounces = falsewebView.scrollView.contentInsetAdjustmentBehavior = .neverwebView.allowsLinkPreview = falsediff --git a/web/index.html b/web/index.htmlindex ca63955..f0336e8 100644--- a/web/index.html+++ b/web/index.html@@ -2,7 +2,7 @@<html lang="en"><head><meta charset="utf-8" />- <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover, user-scalable=no" />+ <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, viewport-fit=cover, user-scalable=no" /><meta name="color-scheme" content="dark" /><title>House Control</title><link rel="stylesheet" href="./src/style.css" />