Ivan Valkou 4 лет назад
Родитель
Сommit
2309c2a7a0
1 измененных файлов с 6 добавлено и 8 удалено
  1. 6 8
      FreeAPS/Sources/Modules/Snooze/View/SnoozeRootView.swift

+ 6 - 8
FreeAPS/Sources/Modules/Snooze/View/SnoozeRootView.swift

@@ -78,7 +78,7 @@ extension Snooze {
             return [celltext, snoozeDescription].joined(separator: ", ")
         }
 
-        var snoozeButton: some View {
+        private var snoozeButton: some View {
             VStack(alignment: .leading) {
                 Button {
                     let interval = pickerTimes[selectedInterval]
@@ -106,15 +106,13 @@ extension Snooze {
             }
         }
 
-        var snoozeDesc: some View {
-            Text(snoozeDescription).lineLimit(0)
-        }
-
         var body: some View {
             Form {
-                snoozeDesc
-                snoozePicker
-                snoozeButton
+                Section {
+                    Text(snoozeDescription).lineLimit(nil)
+                    snoozePicker
+                    snoozeButton
+                }
             }
             .navigationBarTitle("Snooze Alerts")
             .navigationBarTitleDisplayMode(.automatic)