Просмотр исходного кода

re-establish order for the Settings item with hint

Robert 1 год назад
Родитель
Сommit
b37adcaa23
1 измененных файлов с 4 добавлено и 6 удалено
  1. 4 6
      FreeAPS/Sources/Modules/OverrideConfig/View/AddTempTargetForm.swift

+ 4 - 6
FreeAPS/Sources/Modules/OverrideConfig/View/AddTempTargetForm.swift

@@ -135,9 +135,10 @@ struct AddTempTargetForm: View {
             if state.tempTargetTarget > 100 {
             if state.tempTargetTarget > 100 {
                 Section {
                 Section {
                     VStack {
                     VStack {
+                        Toggle("Adjust Sensitivity", isOn: $state.adjustSens).padding(.top)
                         HStack(alignment: .top) {
                         HStack(alignment: .top) {
                             Text(
                             Text(
-                                "Temp Target raises Sensitivity. Insulin reduced to \(formattedPercentage(state.percentage))% of regular amount."
+                                "Temp Target raises Sensitivity. Insulin reduced to \(formattedPercentage(state.percentage))% of regular amount. Further adjust if desired!"
                             )
                             )
                             .font(.footnote)
                             .font(.footnote)
                             .foregroundColor(.secondary)
                             .foregroundColor(.secondary)
@@ -157,16 +158,15 @@ struct AddTempTargetForm: View {
                                 }
                                 }
                             ).buttonStyle(BorderlessButtonStyle())
                             ).buttonStyle(BorderlessButtonStyle())
                         }.padding(.top)
                         }.padding(.top)
-                        Toggle("Adjust Sensitivity", isOn: $state.adjustSens).padding(.top)
-
                     }.padding(.bottom)
                     }.padding(.bottom)
                 }.listRowBackground(Color.chart)
                 }.listRowBackground(Color.chart)
             } else if state.tempTargetTarget < 100 {
             } else if state.tempTargetTarget < 100 {
                 Section {
                 Section {
                     VStack {
                     VStack {
+                        Toggle("Adjust Insulin %", isOn: $state.adjustSens).padding(.top)
                         HStack(alignment: .top) {
                         HStack(alignment: .top) {
                             Text(
                             Text(
-                                "Insulin increased to \(formattedPercentage(state.percentage))% of regular amount."
+                                "Temp Target lowers Sensitivity. Insulin increased to \(formattedPercentage(state.percentage))% of regular amount. Further adjust if desired!"
                             )
                             )
                             .font(.footnote)
                             .font(.footnote)
                             .foregroundColor(.secondary)
                             .foregroundColor(.secondary)
@@ -186,8 +186,6 @@ struct AddTempTargetForm: View {
                                 }
                                 }
                             ).buttonStyle(BorderlessButtonStyle())
                             ).buttonStyle(BorderlessButtonStyle())
                         }.padding(.top)
                         }.padding(.top)
-                        Toggle("Adjust Insulin %", isOn: $state.adjustSens).padding(.top)
-
                     }.padding(.bottom)
                     }.padding(.bottom)
                 }.listRowBackground(Color.chart)
                 }.listRowBackground(Color.chart)
             }
             }