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

Change order of fat and protein input to resemble NS and LF

Deniz Cengiz 1 год назад
Родитель
Сommit
4192a2ff28
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      FreeAPS/Sources/Modules/DataTable/View/CarbEntryEditorView.swift

+ 4 - 4
FreeAPS/Sources/Modules/DataTable/View/CarbEntryEditorView.swift

@@ -134,9 +134,9 @@ struct CarbEntryEditorView: View {
 
                     if state.settingsManager.settings.useFPUconversion {
                         HStack {
-                            Text("Fat")
+                            Text("Protein")
                             TextFieldWithToolBar(
-                                text: $editedFat,
+                                text: $editedProtein,
                                 placeholder: "0",
                                 keyboardType: .numberPad,
                                 numberFormatter: Formatter.decimalFormatterWithOneFractionDigit
@@ -145,9 +145,9 @@ struct CarbEntryEditorView: View {
                         }
 
                         HStack {
-                            Text("Protein")
+                            Text("Fat")
                             TextFieldWithToolBar(
-                                text: $editedProtein,
+                                text: $editedFat,
                                 placeholder: "0",
                                 keyboardType: .numberPad,
                                 numberFormatter: Formatter.decimalFormatterWithOneFractionDigit