commit 030fee3c87b58c957318412ffb824179a33b4485 parent 5e60a3f72a412d7a17573e4a868960200644ee84 Author: Michael Camilleri <[email protected]> Date: Sun, 8 Mar 2026 03:57:32 +0900 Add key-value syncing bridge to Apple Watch The Apple Watch is not currently picking up ongoing changes to the list heading on other devices. This commit aims to rectify that. Co-Authored-By: Claude 4.6 Opus <[email protected]> Diffstat:
| M | ListlessWatch/ListlessWatchApp.swift | | | 7 | ++----- |
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/ListlessWatch/ListlessWatchApp.swift b/ListlessWatch/ListlessWatchApp.swift @@ -3,13 +3,10 @@ import SwiftUI @main struct ListlessWatchApp: App { private let persistenceController = PersistenceController.shared + private let keyValueSyncBridge = KeyValueSyncBridge(keys: ["headingText"]) init() { - let kvStore = NSUbiquitousKeyValueStore.default - kvStore.synchronize() - if let heading = kvStore.string(forKey: "headingText") { - UserDefaults.standard.set(heading, forKey: "headingText") - } + keyValueSyncBridge.start() } var body: some Scene {