소스 검색

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 }