tmhastings 1 год назад
Родитель
Сommit
47d79413f7

+ 9 - 9
FreeAPS/Sources/Modules/CalendarEventSettings/View/CalendarEventSettingsRootView.swift

@@ -96,16 +96,16 @@ extension CalendarEventSettings {
                         verboseHint: VStack {
                             Text("Default: OFF").bold()
                             Text("""
-                            
-                                 When enabled, the calendar event created will indicate whether glucose readings are in-range or out-of-range using the following color emojis:
-                                🟢: In-Range
-                                🟠: Above-Range
-                                🔴: Below-Range    
 
-                                If "Display IOB and COB" is also enabled, "IOB" and "COB" will be replaced with the following emojis:
-                                💉: IOB
-                                🥨: COB
-                                """)
+                             When enabled, the calendar event created will indicate whether glucose readings are in-range or out-of-range using the following color emojis:
+                            🟢: In-Range
+                            🟠: Above-Range
+                            🔴: Below-Range    
+
+                            If "Display IOB and COB" is also enabled, "IOB" and "COB" will be replaced with the following emojis:
+                            💉: IOB
+                            🥨: COB
+                            """)
                         }
                     )
 

+ 5 - 2
FreeAPS/Sources/Modules/DynamicSettings/View/DynamicSettingsRootView.swift

@@ -160,8 +160,11 @@ extension DynamicSettings {
                             It is not recommended to set Autosens Max above 150% to maintain safe insulin dosing.
 
                             """).italic()
-                            Text("There has been no empirical data analysis to support the use of the Sigmoid Formula for dynamic sensitivity determination.").italic()
-                                .bold()
+                            Text(
+                                "There has been no empirical data analysis to support the use of the Sigmoid Formula for dynamic sensitivity determination."
+                            )
+                            .italic()
+                            .bold()
                         }
                     )
 

+ 3 - 3
FreeAPS/Sources/Modules/GeneralSettings/View/UnitsLimitsSettingsRootView.swift

@@ -65,9 +65,9 @@ extension UnitsLimitsSettings {
                     verboseHint: VStack {
                         Text("Default: 0 units").bold()
                         Text("""
-                             
-                             This must be greater than 0 for any automatic temp basals or SMBs to be given.
-                             """).bold().italic()
+
+                        This must be greater than 0 for any automatic temp basals or SMBs to be given.
+                        """).bold().italic()
                         Text("""
 
                         The maximum amount of Insulin On Board (IOB) from all sources - both basal and bolus - that Trio is allowed to accumulate to treat higher-than-target glucose.

+ 16 - 5
FreeAPS/Sources/Modules/RemoteControlConfig/View/RemoteControlConfig.swift

@@ -11,7 +11,7 @@ extension RemoteControlConfig {
 
         @State private var shouldDisplayHint: Bool = false
         @State var hintDetent = PresentationDetent.large
-        @State var selectedVerboseHint: String?
+        @State var selectedVerboseHint: AnyView?
         @State var hintLabel: String?
         @State private var decimalPlaceholder: Decimal = 0.0
         @State private var isCopied: Bool = false
@@ -44,15 +44,26 @@ extension RemoteControlConfig {
                     selectedVerboseHint: Binding(
                         get: { selectedVerboseHint },
                         set: {
-                            selectedVerboseHint = $0
+                            selectedVerboseHint = $0.map { AnyView($0) }
                             hintLabel = "Enable Remote Command"
                         }
                     ),
                     units: state.units,
                     type: .boolean,
                     label: "Enable Remote Control",
-                    miniHint: "Remote Control allow Trio to receive instructions, such as boluses and temp targets, from LoopFollow.",
-                    verboseHint: "When Remote Control is enabled, you can send boluses, overrides, temporary targets, carbs, and other commands to Trio via push notifications. To ensure security, these commands are protected by a shared secret, which must be entered in LoopFollow.",
+                    miniHint: """
+                    Allow Trio to receive instructions, such as boluses and temp targets, from LoopFollow remotely.
+                    Default: OFF
+                    """,
+                    verboseHint: VStack {
+                        Text("Default: OFF").bold()
+                        Text("""
+
+                        When Remote Control is enabled, you can send boluses, overrides, temporary targets, carbs, and other commands to Trio via push notifications.
+
+                        To ensure security, these commands are protected by a shared secret, which must be entered in LoopFollow.
+                        """)
+                    },
                     headerText: "Trio Remote Control"
                 )
 
@@ -100,7 +111,7 @@ extension RemoteControlConfig {
                     hintDetent: $hintDetent,
                     shouldDisplayHint: $shouldDisplayHint,
                     hintLabel: hintLabel ?? "",
-                    hintText: selectedVerboseHint ?? "",
+                    hintText: selectedVerboseHint ?? AnyView(EmptyView()),
                     sheetTitle: "Help"
                 )
             }

+ 6 - 6
FreeAPS/Sources/Modules/TargetBehavoir/View/TargetBehavoirRootView.swift

@@ -101,12 +101,12 @@ extension TargetBehavoir {
                         Text("Eating Soon Mode").bold().italic()
                         Text("Default: OFF").bold()
                         Text("""
-                        
-                            When this feature is enabled, setting a temporary target below 100 mg/dL will increase the Autosens Ratio used for ISF and basal adjustments, resulting in more insulin delivered overall. This scales with the temporary target set; the lower the Temp Target, the higher the Autosens Ratio used.
-                            
-                            If Half Basal Exercise Target is 160, a Temp Target of 95 mg/dL uses an Autosens Ratio of 1.09. A Temp Target of 85 mg/dL uses an Autosens Ratio of 1.33.
-                            
-                            """)
+
+                        When this feature is enabled, setting a temporary target below 100 mg/dL will increase the Autosens Ratio used for ISF and basal adjustments, resulting in more insulin delivered overall. This scales with the temporary target set; the lower the Temp Target, the higher the Autosens Ratio used.
+
+                        If Half Basal Exercise Target is 160, a Temp Target of 95 mg/dL uses an Autosens Ratio of 1.09. A Temp Target of 85 mg/dL uses an Autosens Ratio of 1.33.
+
+                        """)
                         Text("The effect of this can be adjusted with the Half Basal Exercise Target").italic()
                     }
                 )