소스 검색

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)