瀏覽代碼

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)