瀏覽代碼

Clarifies data transmission toggle logic

Adds a comment to explain the inverted binding of the "Disable Watchface Data" toggle.
Robert 3 月之前
父節點
當前提交
14ca6d7e6d
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Trio/Sources/Modules/WatchConfig/View/WatchConfigGarminAppConfigView.swift

+ 3 - 0
Trio/Sources/Modules/WatchConfig/View/WatchConfigGarminAppConfigView.swift

@@ -53,6 +53,9 @@ struct WatchConfigGarminAppConfigView: View {
                             ).buttonStyle(BorderlessButtonStyle())
                         }.padding(.top)
                         Spacer()
+                        // Inverted binding: "Disable" toggle controls "isEnabled" boolean
+                        // When toggle is ON → data transmission is DISABLED (isEnabled = false)
+                        // When toggle is OFF → data transmission is ENABLED (isEnabled = true)
                         Toggle("Disable Watchface Data", isOn: Binding(
                             get: { !state.garminSettings.isWatchfaceDataEnabled },
                             set: { state.garminSettings.isWatchfaceDataEnabled = !$0 }