Browse Source

Alarm gui adjustments

Jonas Björkert 1 year ago
parent
commit
1ec4a40342

+ 8 - 6
LoopFollow/Alarm/AlarmEditing/Components/AlarmStepperSection.swift

@@ -40,12 +40,14 @@ struct AlarmStepperSection: View {
             header: header.map(Text.init),
             footer: footer.map(Text.init)
         ) {
-            Stepper(
-                "\(title): \(Int(value))\(unitLabel.map { " \($0)" } ?? "")",
-                value: $value,
-                in: range,
-                step: step
-            )
+            Stepper(value: $value, in: range, step: step) {
+                HStack {
+                    Text(title)
+                    Spacer()
+                    Text("\(Int(value))\(unitLabel.map { " \($0)" } ?? "")")
+                        .foregroundColor(.secondary)
+                }
+            }
         }
     }
 }