瀏覽代碼

clean Garmin app config UI spacing

Adjusts padding and layout within the Garmin app configuration view to ensure consistent bottom spacing between sections. Updates content presentation by replacing vertical padding with bottom-specific padding and restructuring elements for improved visual arrangement.
Robert 3 月之前
父節點
當前提交
332f293f84
共有 1 個文件被更改,包括 28 次插入4 次删除
  1. 28 4
      Trio/Sources/Modules/WatchConfig/View/WatchConfigGarminAppConfigView.swift

+ 28 - 4
Trio/Sources/Modules/WatchConfig/View/WatchConfigGarminAppConfigView.swift

@@ -56,7 +56,9 @@ struct WatchConfigGarminAppConfigView: View {
                                 }
                                 }
                             ).buttonStyle(BorderlessButtonStyle())
                             ).buttonStyle(BorderlessButtonStyle())
                         }.padding(.top)
                         }.padding(.top)
-                        Spacer()
+                    }.padding(.bottom)
+
+                    VStack {
                         // Inverted binding: "Disable" toggle controls "isEnabled" boolean
                         // Inverted binding: "Disable" toggle controls "isEnabled" boolean
                         // When toggle is ON → data transmission is DISABLED (isEnabled = false)
                         // When toggle is ON → data transmission is DISABLED (isEnabled = false)
                         // When toggle is OFF → data transmission is ENABLED (isEnabled = true)
                         // When toggle is OFF → data transmission is ENABLED (isEnabled = true)
@@ -84,7 +86,7 @@ struct WatchConfigGarminAppConfigView: View {
                                 }
                                 }
                             ).buttonStyle(BorderlessButtonStyle())
                             ).buttonStyle(BorderlessButtonStyle())
                         }.padding(.top)
                         }.padding(.top)
-                    }.padding(.vertical)
+                    }.padding(.bottom)
                 }
                 }
             ).listRowBackground(Color.chart)
             ).listRowBackground(Color.chart)
 
 
@@ -123,7 +125,7 @@ struct WatchConfigGarminAppConfigView: View {
                                 }
                                 }
                             ).buttonStyle(BorderlessButtonStyle())
                             ).buttonStyle(BorderlessButtonStyle())
                         }.padding(.top)
                         }.padding(.top)
-                    }.padding(.vertical)
+                    }.padding(.bottom)
                 }
                 }
             ).listRowBackground(Color.chart)
             ).listRowBackground(Color.chart)
 
 
@@ -141,6 +143,28 @@ struct WatchConfigGarminAppConfigView: View {
                                 Text(selection.displayName).tag(selection)
                                 Text(selection.displayName).tag(selection)
                             }
                             }
                         }.padding(.top)
                         }.padding(.top)
+                        HStack(alignment: .center) {
+                            Text(
+                                "Choose between displayed data types on Garmin device."
+                            )
+                            .font(.footnote)
+                            .foregroundColor(.secondary)
+                            .lineLimit(nil)
+                            Spacer()
+                            Button(
+                                action: {
+                                    shouldDisplayHint3.toggle()
+                                },
+                                label: {
+                                    HStack {
+                                        Image(systemName: "questionmark.circle")
+                                    }
+                                }
+                            ).buttonStyle(BorderlessButtonStyle())
+                        }.padding(.top)
+                    }.padding(.bottom)
+
+                    VStack {
                         Picker(
                         Picker(
                             selection: $state.garminSettings.secondaryAttributeChoice,
                             selection: $state.garminSettings.secondaryAttributeChoice,
                             label: Text("Data Choice 2").multilineTextAlignment(.leading)
                             label: Text("Data Choice 2").multilineTextAlignment(.leading)
@@ -168,7 +192,7 @@ struct WatchConfigGarminAppConfigView: View {
                                 }
                                 }
                             ).buttonStyle(BorderlessButtonStyle())
                             ).buttonStyle(BorderlessButtonStyle())
                         }.padding(.top)
                         }.padding(.top)
-                    }.padding(.vertical)
+                    }.padding(.bottom)
                 }
                 }
             ).listRowBackground(Color.chart)
             ).listRowBackground(Color.chart)
         }
         }