Commit 3ad53a585f
Verified · cmc
Layout: unified · split
LibreTasks/ContentView.swift +7 −7
| @@ -97,10 +97,11 @@ struct ContentView: View { | ||
| 97 | 97 | (Text("[#") + Text(task.taskPriority) + Text("]")) |
| 98 | 98 | } |
| 99 | 99 | .swipeActions(edge: .leading) { |
| 100 | Button(role: .destructive) { | |
| 101 | print("\(task.taskItem) is being deleted.") | |
| 100 | Button() { | |
| 101 | print("\(task.taskItem) is being edited.") | |
| 102 | // TODO: Add method to edit message in the DataStore | |
| 102 | 103 | } label: { |
| 103 | Label("Delete", systemImage: "trash") | |
| 104 | Label("Edit", systemImage: "pencil") | |
| 104 | 105 | } |
| 105 | 106 | } |
| 106 | 107 | .swipeActions(edge: .trailing) { |
| @@ -111,11 +112,10 @@ struct ContentView: View { | ||
| 111 | 112 | Label("Complete", systemImage: "checkmark") |
| 112 | 113 | } |
| 113 | 114 | .tint(.green) |
| 114 | Button() { | |
| 115 | print("\(task.taskItem) is being edited.") | |
| 116 | // TODO: Add method to edit message in the DataStore | |
| 115 | Button(role: .destructive) { | |
| 116 | print("\(task.taskItem) is being deleted.") | |
| 117 | 117 | } label: { |
| 118 | Label("Edit", systemImage: "pencil") | |
| 118 | Label("Delete", systemImage: "trash") | |
| 119 | 119 | } |
| 120 | 120 | } |
| 121 | 121 | } |