Skip to content

Linux + iPhone Continuity / iMessage / SMS

mer

Zack Bartel1acf7d40d8d8
diff --git a/apple/Tether/ViewModels/TetherViewModel.swift b/apple/Tether/ViewModels/TetherViewModel.swift
index 4a073b7..bcd84d8 100644
--- a/apple/Tether/ViewModels/TetherViewModel.swift
+++ b/apple/Tether/ViewModels/TetherViewModel.swift
@@ -59,7 +59,8 @@ struct FileTransfer: Identifiable {
}
}
-/// Main app ViewModel — owns all services and coordinates their interactions.
+@Observable
+final class TetherViewModel {
private static let autoSyncClipboardKey = "TetherAutoSyncClipboard"
// MARK: - Published State
@@ -67,7 +68,7 @@ struct FileTransfer: Identifiable {
/// Whether clipboard updates from remote devices are automatically written to the local pasteboard.
var autoSyncClipboard: Bool = true {
didSet {
- UserDefaults.standard.set(autoSyncClipboard, forKey: Self.autoSyncClipboardKey)
+ UserDefaults.standard.set(autoSyncClipboard, forKey: TetherViewModel.autoSyncClipboardKey)
}
}