Преглед изворни кода

feat: allow the Notes field to become multiline

Sam Jaffe пре 3 недеља
родитељ
комит
5c2dfcc1e1
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Todos/View/TaskView.swift

+ 1 - 1
Todos/View/TaskView.swift

@@ -58,7 +58,7 @@ struct TaskView: View {
       
       if isFocused || !(hideNotes || task.notes.isEmpty) {
         HStack {
-          TextField("Notes", text: $task.notes)
+          TextField("Notes", text: $task.notes, axis: .vertical)
             .font(.footnote)
             .focused($isFocused)
             .padding(.leading, 30)