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