Explorar o código

adjust listSectionSpacing in Module Views

Mike Plante hai 1 ano
pai
achega
e6d03d4844
Modificáronse 27 ficheiros con 86 adicións e 52 borrados
  1. 4 0
      FreeAPS.xcodeproj/project.pbxproj
  2. 4 0
      FreeAPS/Sources/Helpers/ConstantValues.swift
  3. 1 0
      FreeAPS/Sources/Modules/AlgorithmAdvancedSettings/View/AlgorithmAdvancedSettingsRootView.swift
  4. 1 0
      FreeAPS/Sources/Modules/AutosensSettings/View/AutosensSettingsRootView.swift
  5. 2 1
      FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift
  6. 2 1
      FreeAPS/Sources/Modules/BolusCalculatorConfig/View/BolusCalculatorConfigRootView.swift
  7. 2 1
      FreeAPS/Sources/Modules/CGM/View/CGMRootView.swift
  8. 1 0
      FreeAPS/Sources/Modules/CalendarEventSettings/View/CalendarEventSettingsRootView.swift
  9. 1 0
      FreeAPS/Sources/Modules/DynamicSettings/View/DynamicSettingsRootView.swift
  10. 1 0
      FreeAPS/Sources/Modules/GeneralSettings/View/UnitsLimitsSettingsRootView.swift
  11. 2 1
      FreeAPS/Sources/Modules/GlucoseNotificationSettings/View/GlucoseNotificationSettingsRootView.swift
  12. 2 1
      FreeAPS/Sources/Modules/HealthKit/View/AppleHealthKitRootView.swift
  13. 1 0
      FreeAPS/Sources/Modules/LiveActivitySettings/View/LiveActivitySettingsRootView.swift
  14. 2 1
      FreeAPS/Sources/Modules/MealSettings/View/MealSettingsRootView.swift
  15. 4 2
      FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutConfigRootView.swift
  16. 2 1
      FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutConnectView.swift
  17. 2 1
      FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutFetchView.swift
  18. 2 1
      FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutUploadView.swift
  19. 2 1
      FreeAPS/Sources/Modules/RemoteControlConfig/View/RemoteControlConfig.swift
  20. 1 0
      FreeAPS/Sources/Modules/SMBSettings/View/SMBSettingsRootView.swift
  21. 36 35
      FreeAPS/Sources/Modules/Settings/View/SettingsRootView.swift
  22. 2 1
      FreeAPS/Sources/Modules/ShortcutsConfig/View/ShortcutsConfigView.swift
  23. 1 0
      FreeAPS/Sources/Modules/TargetBehavoir/View/TargetBehavoirRootView.swift
  24. 2 1
      FreeAPS/Sources/Modules/UserInterfaceSettings/View/UserInterfaceSettingsRootView.swift
  25. 2 1
      FreeAPS/Sources/Modules/WatchConfig/View/WatchConfigAppleWatchView.swift
  26. 2 1
      FreeAPS/Sources/Modules/WatchConfig/View/WatchConfigGarminView.swift
  27. 2 1
      FreeAPS/Sources/Modules/WatchConfig/View/WatchConfigRootView.swift

+ 4 - 0
FreeAPS.xcodeproj/project.pbxproj

@@ -343,6 +343,7 @@
 		BDF530D82B40F8AC002CAF43 /* LockScreenView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDF530D72B40F8AC002CAF43 /* LockScreenView.swift */; };
 		BDF530D82B40F8AC002CAF43 /* LockScreenView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDF530D72B40F8AC002CAF43 /* LockScreenView.swift */; };
 		BDFD165A2AE40438007F0DDA /* BolusRootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDFD16592AE40438007F0DDA /* BolusRootView.swift */; };
 		BDFD165A2AE40438007F0DDA /* BolusRootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BDFD16592AE40438007F0DDA /* BolusRootView.swift */; };
 		BF1667ADE69E4B5B111CECAE /* ManualTempBasalProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 680C4420C9A345D46D90D06C /* ManualTempBasalProvider.swift */; };
 		BF1667ADE69E4B5B111CECAE /* ManualTempBasalProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 680C4420C9A345D46D90D06C /* ManualTempBasalProvider.swift */; };
+		C2A0A42F2CE03131003B98E8 /* ConstantValues.swift in Sources */ = {isa = PBXBuildFile; fileRef = C2A0A42E2CE0312C003B98E8 /* ConstantValues.swift */; };
 		C967DACD3B1E638F8B43BE06 /* ManualTempBasalStateModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = CFCFE0781F9074C2917890E8 /* ManualTempBasalStateModel.swift */; };
 		C967DACD3B1E638F8B43BE06 /* ManualTempBasalStateModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = CFCFE0781F9074C2917890E8 /* ManualTempBasalStateModel.swift */; };
 		CA370FC152BC98B3D1832968 /* BasalProfileEditorRootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF8BCB0C37DEB5EC377B9612 /* BasalProfileEditorRootView.swift */; };
 		CA370FC152BC98B3D1832968 /* BasalProfileEditorRootView.swift in Sources */ = {isa = PBXBuildFile; fileRef = BF8BCB0C37DEB5EC377B9612 /* BasalProfileEditorRootView.swift */; };
 		CC6C406E2ACDD69E009B8058 /* RawFetchedProfile.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC6C406D2ACDD69E009B8058 /* RawFetchedProfile.swift */; };
 		CC6C406E2ACDD69E009B8058 /* RawFetchedProfile.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC6C406D2ACDD69E009B8058 /* RawFetchedProfile.swift */; };
@@ -1021,6 +1022,7 @@
 		BDFD16592AE40438007F0DDA /* BolusRootView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BolusRootView.swift; sourceTree = "<group>"; };
 		BDFD16592AE40438007F0DDA /* BolusRootView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BolusRootView.swift; sourceTree = "<group>"; };
 		BF8BCB0C37DEB5EC377B9612 /* BasalProfileEditorRootView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = BasalProfileEditorRootView.swift; sourceTree = "<group>"; };
 		BF8BCB0C37DEB5EC377B9612 /* BasalProfileEditorRootView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = BasalProfileEditorRootView.swift; sourceTree = "<group>"; };
 		C19984D62EFC0035A9E9644D /* BolusProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = BolusProvider.swift; sourceTree = "<group>"; };
 		C19984D62EFC0035A9E9644D /* BolusProvider.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = BolusProvider.swift; sourceTree = "<group>"; };
+		C2A0A42E2CE0312C003B98E8 /* ConstantValues.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConstantValues.swift; sourceTree = "<group>"; };
 		C377490C77661D75E8C50649 /* ManualTempBasalRootView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ManualTempBasalRootView.swift; sourceTree = "<group>"; };
 		C377490C77661D75E8C50649 /* ManualTempBasalRootView.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = ManualTempBasalRootView.swift; sourceTree = "<group>"; };
 		C8D1A7CA8C10C4403D4BBFA7 /* BolusDataFlow.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = BolusDataFlow.swift; sourceTree = "<group>"; };
 		C8D1A7CA8C10C4403D4BBFA7 /* BolusDataFlow.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = BolusDataFlow.swift; sourceTree = "<group>"; };
 		CC6C406D2ACDD69E009B8058 /* RawFetchedProfile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RawFetchedProfile.swift; sourceTree = "<group>"; };
 		CC6C406D2ACDD69E009B8058 /* RawFetchedProfile.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RawFetchedProfile.swift; sourceTree = "<group>"; };
@@ -2003,6 +2005,7 @@
 		388E5A5A25B6F05F0019842D /* Helpers */ = {
 		388E5A5A25B6F05F0019842D /* Helpers */ = {
 			isa = PBXGroup;
 			isa = PBXGroup;
 			children = (
 			children = (
+				C2A0A42E2CE0312C003B98E8 /* ConstantValues.swift */,
 				DD940BAB2CA75889000830A5 /* DynamicGlucoseColor.swift */,
 				DD940BAB2CA75889000830A5 /* DynamicGlucoseColor.swift */,
 				38F37827261260DC009DB701 /* Color+Extensions.swift */,
 				38F37827261260DC009DB701 /* Color+Extensions.swift */,
 				389ECE042601144100D86C4F /* ConcurrentMap.swift */,
 				389ECE042601144100D86C4F /* ConcurrentMap.swift */,
@@ -3257,6 +3260,7 @@
 			buildActionMask = 2147483647;
 			buildActionMask = 2147483647;
 			files = (
 			files = (
 				3811DE2325C9D48300A708ED /* MainDataFlow.swift in Sources */,
 				3811DE2325C9D48300A708ED /* MainDataFlow.swift in Sources */,
+				C2A0A42F2CE03131003B98E8 /* ConstantValues.swift in Sources */,
 				BD3CC0722B0B89D50013189E /* MainChartView.swift in Sources */,
 				BD3CC0722B0B89D50013189E /* MainChartView.swift in Sources */,
 				3811DEEB25CA063400A708ED /* PersistedProperty.swift in Sources */,
 				3811DEEB25CA063400A708ED /* PersistedProperty.swift in Sources */,
 				38E44537274E411700EC9A94 /* Disk+Helpers.swift in Sources */,
 				38E44537274E411700EC9A94 /* Disk+Helpers.swift in Sources */,

+ 4 - 0
FreeAPS/Sources/Helpers/ConstantValues.swift

@@ -0,0 +1,4 @@
+import SwiftUI
+
+// Global constant for list section separation
+let sectionSpacing: CGFloat = 15

+ 1 - 0
FreeAPS/Sources/Modules/AlgorithmAdvancedSettings/View/AlgorithmAdvancedSettingsRootView.swift

@@ -381,6 +381,7 @@ extension AlgorithmAdvancedSettings {
                     }
                     }
                 )
                 )
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 1 - 0
FreeAPS/Sources/Modules/AutosensSettings/View/AutosensSettingsRootView.swift

@@ -127,6 +127,7 @@ extension AutosensSettings {
                     }
                     }
                 )
                 )
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 2 - 1
FreeAPS/Sources/Modules/Bolus/View/BolusRootView.swift

@@ -309,7 +309,8 @@ extension Bolus {
                         }.listRowBackground(Color.chart)
                         }.listRowBackground(Color.chart)
 
 
                         treatmentButton
                         treatmentButton
-                    }.listSectionSpacing(20)
+                    }
+                    .listSectionSpacing(sectionSpacing)
                 }
                 }
                 .blur(radius: state.waitForSuggestion ? 5 : 0)
                 .blur(radius: state.waitForSuggestion ? 5 : 0)
 
 

+ 2 - 1
FreeAPS/Sources/Modules/BolusCalculatorConfig/View/BolusCalculatorConfigRootView.swift

@@ -47,7 +47,7 @@ extension BolusCalculatorConfig {
         }
         }
 
 
         var body: some View {
         var body: some View {
-            Form {
+            List {
                 SettingInputSection(
                 SettingInputSection(
                     decimalValue: $decimalPlaceholder,
                     decimalValue: $decimalPlaceholder,
                     booleanValue: $state.displayPresets,
                     booleanValue: $state.displayPresets,
@@ -167,6 +167,7 @@ extension BolusCalculatorConfig {
                     }
                     }
                 )
                 )
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 2 - 1
FreeAPS/Sources/Modules/CGM/View/CGMRootView.swift

@@ -36,7 +36,7 @@ extension CGM {
 
 
         var body: some View {
         var body: some View {
             NavigationView {
             NavigationView {
-                Form {
+                List {
                     Section(
                     Section(
                         header: Text("CGM Integration to Trio"),
                         header: Text("CGM Integration to Trio"),
                         content: {
                         content: {
@@ -231,6 +231,7 @@ extension CGM {
                         }
                         }
                     )
                     )
                 }
                 }
+                .listSectionSpacing(sectionSpacing)
                 .scrollContentBackground(.hidden).background(color)
                 .scrollContentBackground(.hidden).background(color)
                 .onAppear(perform: configureView)
                 .onAppear(perform: configureView)
                 .navigationTitle("CGM")
                 .navigationTitle("CGM")

+ 1 - 0
FreeAPS/Sources/Modules/CalendarEventSettings/View/CalendarEventSettingsRootView.swift

@@ -149,6 +149,7 @@ extension CalendarEventSettings {
                     }
                     }
                 }
                 }
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 1 - 0
FreeAPS/Sources/Modules/DynamicSettings/View/DynamicSettingsRootView.swift

@@ -330,6 +330,7 @@ extension DynamicSettings {
                     )
                     )
                 }
                 }
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 1 - 0
FreeAPS/Sources/Modules/GeneralSettings/View/UnitsLimitsSettingsRootView.swift

@@ -149,6 +149,7 @@ extension UnitsLimitsSettings {
                     }
                     }
                 )
                 )
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 2 - 1
FreeAPS/Sources/Modules/GlucoseNotificationSettings/View/GlucoseNotificationSettingsRootView.swift

@@ -55,7 +55,7 @@ extension GlucoseNotificationSettings {
         }
         }
 
 
         var body: some View {
         var body: some View {
-            Form {
+            List {
                 SettingInputSection(
                 SettingInputSection(
                     decimalValue: $decimalPlaceholder,
                     decimalValue: $decimalPlaceholder,
                     booleanValue: $state.glucoseBadge,
                     booleanValue: $state.glucoseBadge,
@@ -143,6 +143,7 @@ extension GlucoseNotificationSettings {
 
 
                 self.lowAndHighGlucoseAlertSection
                 self.lowAndHighGlucoseAlertSection
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 2 - 1
FreeAPS/Sources/Modules/HealthKit/View/AppleHealthKitRootView.swift

@@ -32,7 +32,7 @@ extension AppleHealthKit {
         }
         }
 
 
         var body: some View {
         var body: some View {
-            Form {
+            List {
                 SettingInputSection(
                 SettingInputSection(
                     decimalValue: $decimalPlaceholder,
                     decimalValue: $decimalPlaceholder,
                     booleanValue: $state.useAppleHealth,
                     booleanValue: $state.useAppleHealth,
@@ -77,6 +77,7 @@ extension AppleHealthKit {
                     }.listRowBackground(Color.chart)
                     }.listRowBackground(Color.chart)
                 }
                 }
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 1 - 0
FreeAPS/Sources/Modules/LiveActivitySettings/View/LiveActivitySettingsRootView.swift

@@ -170,6 +170,7 @@ extension LiveActivitySettings {
                     }
                     }
                 }
                 }
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .onReceive(resolver.resolve(LiveActivityBridge.self)!.$systemEnabled, perform: {
             .onReceive(resolver.resolve(LiveActivityBridge.self)!.$systemEnabled, perform: {
                 self.systemLiveActivitySetting = $0
                 self.systemLiveActivitySetting = $0
             })
             })

+ 2 - 1
FreeAPS/Sources/Modules/MealSettings/View/MealSettingsRootView.swift

@@ -56,7 +56,7 @@ extension MealSettings {
         }
         }
 
 
         var body: some View {
         var body: some View {
-            Form {
+            List {
                 Section(
                 Section(
                     header: Text("Limits per Entry"),
                     header: Text("Limits per Entry"),
                     content: {
                     content: {
@@ -369,6 +369,7 @@ extension MealSettings {
                     )
                     )
                 }
                 }
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 4 - 2
FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutConfigRootView.swift

@@ -37,7 +37,7 @@ extension NightscoutConfig {
 
 
         var body: some View {
         var body: some View {
             ZStack {
             ZStack {
-                Form {
+                List {
                     Section(
                     Section(
                         header: Text("Nightscout Integration"),
                         header: Text("Nightscout Integration"),
                         content: {
                         content: {
@@ -184,7 +184,9 @@ extension NightscoutConfig {
                             }.padding(.vertical)
                             }.padding(.vertical)
                         }
                         }
                     ).listRowBackground(Color.chart)
                     ).listRowBackground(Color.chart)
-                }.blur(radius: state.importStatus == .running ? 5 : 0)
+                }
+                .listSectionSpacing(sectionSpacing)
+                .blur(radius: state.importStatus == .running ? 5 : 0)
 
 
                 if state.importStatus == .running {
                 if state.importStatus == .running {
                     CustomProgressView(text: "Importing Profile...")
                     CustomProgressView(text: "Importing Profile...")

+ 2 - 1
FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutConnectView.swift

@@ -30,7 +30,7 @@ struct NightscoutConnectView: View {
     }
     }
 
 
     var body: some View {
     var body: some View {
-        Form {
+        List {
             Section(
             Section(
                 header: Text("Connect to Nightscout"),
                 header: Text("Connect to Nightscout"),
                 content: {
                 content: {
@@ -105,6 +105,7 @@ struct NightscoutConnectView: View {
 //                }
 //                }
 //            } header: { Text("Local glucose source") }.listRowBackground(Color.chart)
 //            } header: { Text("Local glucose source") }.listRowBackground(Color.chart)
         }
         }
+        .listSectionSpacing(sectionSpacing)
         .navigationTitle("Connect")
         .navigationTitle("Connect")
         .navigationBarTitleDisplayMode(.automatic)
         .navigationBarTitleDisplayMode(.automatic)
         .scrollContentBackground(.hidden).background(color)
         .scrollContentBackground(.hidden).background(color)

+ 2 - 1
FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutFetchView.swift

@@ -30,7 +30,7 @@ struct NightscoutFetchView: View {
     }
     }
 
 
     var body: some View {
     var body: some View {
-        Form {
+        List {
             SettingInputSection(
             SettingInputSection(
                 decimalValue: $decimalPlaceholder,
                 decimalValue: $decimalPlaceholder,
                 booleanValue: $state.isDownloadEnabled,
                 booleanValue: $state.isDownloadEnabled,
@@ -88,6 +88,7 @@ struct NightscoutFetchView: View {
                 }.listRowBackground(Color.tabBar)
                 }.listRowBackground(Color.tabBar)
             }
             }
         }
         }
+        .listSectionSpacing(sectionSpacing)
         .sheet(isPresented: $shouldDisplayHint) {
         .sheet(isPresented: $shouldDisplayHint) {
             SettingInputHintView(
             SettingInputHintView(
                 hintDetent: $hintDetent,
                 hintDetent: $hintDetent,

+ 2 - 1
FreeAPS/Sources/Modules/NightscoutConfig/View/NightscoutUploadView.swift

@@ -29,7 +29,7 @@ struct NightscoutUploadView: View {
     }
     }
 
 
     var body: some View {
     var body: some View {
-        Form {
+        List {
             SettingInputSection(
             SettingInputSection(
                 decimalValue: $decimalPlaceholder,
                 decimalValue: $decimalPlaceholder,
                 booleanValue: $state.isUploadEnabled,
                 booleanValue: $state.isUploadEnabled,
@@ -86,6 +86,7 @@ struct NightscoutUploadView: View {
                 )
                 )
             }
             }
         }
         }
+        .listSectionSpacing(sectionSpacing)
         .sheet(isPresented: $shouldDisplayHint) {
         .sheet(isPresented: $shouldDisplayHint) {
             SettingInputHintView(
             SettingInputHintView(
                 hintDetent: $hintDetent,
                 hintDetent: $hintDetent,

+ 2 - 1
FreeAPS/Sources/Modules/RemoteControlConfig/View/RemoteControlConfig.swift

@@ -36,7 +36,7 @@ extension RemoteControlConfig {
         }
         }
 
 
         var body: some View {
         var body: some View {
-            Form {
+            List {
                 SettingInputSection(
                 SettingInputSection(
                     decimalValue: $decimalPlaceholder,
                     decimalValue: $decimalPlaceholder,
                     booleanValue: $state.isTrioRemoteControlEnabled,
                     booleanValue: $state.isTrioRemoteControlEnabled,
@@ -103,6 +103,7 @@ extension RemoteControlConfig {
                     }
                     }
                 ).listRowBackground(Color.chart)
                 ).listRowBackground(Color.chart)
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 1 - 0
FreeAPS/Sources/Modules/SMBSettings/View/SMBSettingsRootView.swift

@@ -398,6 +398,7 @@ extension SMBSettings {
                     }
                     }
                 )
                 )
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 36 - 35
FreeAPS/Sources/Modules/Settings/View/SettingsRootView.swift

@@ -44,7 +44,7 @@ extension Settings {
         }
         }
 
 
         var body: some View {
         var body: some View {
-            Form {
+            List {
                 if searchText.isEmpty {
                 if searchText.isEmpty {
                     let buildDetails = BuildDetails.default
                     let buildDetails = BuildDetails.default
 
 
@@ -303,42 +303,43 @@ extension Settings {
 //                        }
 //                        }
 //                    }
 //                    }
 //                }.listRowBackground(Color.chart)
 //                }.listRowBackground(Color.chart)
-
-            }.scrollContentBackground(.hidden).background(color)
-                .sheet(isPresented: $shouldDisplayHint) {
-                    SettingInputHintView(
-                        hintDetent: $hintDetent,
-                        shouldDisplayHint: $shouldDisplayHint,
-                        hintLabel: hintLabel ?? "",
-                        hintText: selectedVerboseHint ?? AnyView(EmptyView()),
-                        sheetTitle: "Help"
-                    )
-                }
-                .sheet(isPresented: $showShareSheet) {
-                    ShareSheet(activityItems: state.logItems())
-                }
-                .onAppear(perform: configureView)
-                .navigationTitle("Settings")
-                .navigationBarTitleDisplayMode(.automatic)
-                .toolbar {
-                    ToolbarItem(placement: .topBarTrailing) {
-                        Button(
-                            action: {
-                                if let url = URL(string: "https://triodocs.org/") {
-                                    UIApplication.shared.open(url)
-                                }
-                            },
-                            label: {
-                                HStack {
-                                    Text("Trio Docs")
-                                    Image(systemName: "questionmark.circle")
-                                }
+            }
+            .listSectionSpacing(sectionSpacing)
+            .scrollContentBackground(.hidden).background(color)
+            .sheet(isPresented: $shouldDisplayHint) {
+                SettingInputHintView(
+                    hintDetent: $hintDetent,
+                    shouldDisplayHint: $shouldDisplayHint,
+                    hintLabel: hintLabel ?? "",
+                    hintText: selectedVerboseHint ?? AnyView(EmptyView()),
+                    sheetTitle: "Help"
+                )
+            }
+            .sheet(isPresented: $showShareSheet) {
+                ShareSheet(activityItems: state.logItems())
+            }
+            .onAppear(perform: configureView)
+            .navigationTitle("Settings")
+            .navigationBarTitleDisplayMode(.automatic)
+            .toolbar {
+                ToolbarItem(placement: .topBarTrailing) {
+                    Button(
+                        action: {
+                            if let url = URL(string: "https://triodocs.org/") {
+                                UIApplication.shared.open(url)
                             }
                             }
-                        )
-                    }
+                        },
+                        label: {
+                            HStack {
+                                Text("Trio Docs")
+                                Image(systemName: "questionmark.circle")
+                            }
+                        }
+                    )
                 }
                 }
-                .searchable(text: $searchText, placement: .navigationBarDrawer(displayMode: .always))
-                .screenNavigation(self)
+            }
+            .searchable(text: $searchText, placement: .navigationBarDrawer(displayMode: .always))
+            .screenNavigation(self)
         }
         }
     }
     }
 }
 }

+ 2 - 1
FreeAPS/Sources/Modules/ShortcutsConfig/View/ShortcutsConfigView.swift

@@ -36,7 +36,7 @@ extension ShortcutsConfig {
         }
         }
 
 
         var body: some View {
         var body: some View {
-            Form {
+            List {
                 Section(
                 Section(
                     header: Text("Shortcuts Integration"),
                     header: Text("Shortcuts Integration"),
                     content: {
                     content: {
@@ -82,6 +82,7 @@ extension ShortcutsConfig {
                     }
                     }
                 )
                 )
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 1 - 0
FreeAPS/Sources/Modules/TargetBehavoir/View/TargetBehavoirRootView.swift

@@ -180,6 +180,7 @@ extension TargetBehavoir {
                     }
                     }
                 )
                 )
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 2 - 1
FreeAPS/Sources/Modules/UserInterfaceSettings/View/UserInterfaceSettingsRootView.swift

@@ -54,7 +54,7 @@ extension UserInterfaceSettings {
         }
         }
 
 
         var body: some View {
         var body: some View {
-            Form {
+            List {
                 Section(
                 Section(
                     header: Text("General Appearance"),
                     header: Text("General Appearance"),
                     content: {
                     content: {
@@ -485,6 +485,7 @@ extension UserInterfaceSettings {
                     headerText: "Carbs Required Badge"
                     headerText: "Carbs Required Badge"
                 )
                 )
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .sheet(isPresented: $shouldDisplayHint) {
             .sheet(isPresented: $shouldDisplayHint) {
                 SettingInputHintView(
                 SettingInputHintView(
                     hintDetent: $hintDetent,
                     hintDetent: $hintDetent,

+ 2 - 1
FreeAPS/Sources/Modules/WatchConfig/View/WatchConfigAppleWatchView.swift

@@ -34,7 +34,7 @@ struct WatchConfigAppleWatchView: View {
     }
     }
 
 
     var body: some View {
     var body: some View {
-        Form {
+        List {
             Section(
             Section(
                 header: Text("Apple Watch Configuration"),
                 header: Text("Apple Watch Configuration"),
                 content: {
                 content: {
@@ -121,6 +121,7 @@ struct WatchConfigAppleWatchView: View {
                 )
                 )
             )
             )
         }
         }
+        .listSectionSpacing(sectionSpacing)
         .sheet(isPresented: $shouldDisplayHint) {
         .sheet(isPresented: $shouldDisplayHint) {
             SettingInputHintView(
             SettingInputHintView(
                 hintDetent: $hintDetent,
                 hintDetent: $hintDetent,

+ 2 - 1
FreeAPS/Sources/Modules/WatchConfig/View/WatchConfigGarminView.swift

@@ -34,7 +34,7 @@ struct WatchConfigGarminView: View {
     }
     }
 
 
     var body: some View {
     var body: some View {
-        Form {
+        List {
             Section(
             Section(
                 header: Text("Garmin Configuration"),
                 header: Text("Garmin Configuration"),
                 content:
                 content:
@@ -89,6 +89,7 @@ struct WatchConfigGarminView: View {
                 }.listRowBackground(Color.chart)
                 }.listRowBackground(Color.chart)
             }
             }
         }
         }
+        .listSectionSpacing(sectionSpacing)
         .sheet(isPresented: $shouldDisplayHint) {
         .sheet(isPresented: $shouldDisplayHint) {
             SettingInputHintView(
             SettingInputHintView(
                 hintDetent: $hintDetent,
                 hintDetent: $hintDetent,

+ 2 - 1
FreeAPS/Sources/Modules/WatchConfig/View/WatchConfigRootView.swift

@@ -25,7 +25,7 @@ extension WatchConfig {
         }
         }
 
 
         var body: some View {
         var body: some View {
-            Form {
+            List {
                 Section(
                 Section(
                     header: Text("Smartwatch Configuration"),
                     header: Text("Smartwatch Configuration"),
                     content: {
                     content: {
@@ -34,6 +34,7 @@ extension WatchConfig {
                     }
                     }
                 ).listRowBackground(Color.chart)
                 ).listRowBackground(Color.chart)
             }
             }
+            .listSectionSpacing(sectionSpacing)
             .scrollContentBackground(.hidden).background(color)
             .scrollContentBackground(.hidden).background(color)
             .onAppear(perform: configureView)
             .onAppear(perform: configureView)
             .navigationTitle("Watch")
             .navigationTitle("Watch")