aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--LibreTasks/ContentView.swift11
1 files changed, 10 insertions, 1 deletions
diff --git a/LibreTasks/ContentView.swift b/LibreTasks/ContentView.swift
index 2ea9013..8847716 100644
--- a/LibreTasks/ContentView.swift
+++ b/LibreTasks/ContentView.swift
@@ -96,12 +96,21 @@ struct ContentView: View {
Spacer()
(Text("[#") + Text(task.taskPriority) + Text("]"))
}
- .swipeActions(edge: .trailing) {
+ .swipeActions(edge: .leading) {
Button(role: .destructive) {
print("\(task.taskItem) is being deleted.")
} label: {
Label("Delete", systemImage: "trash")
}
+ }
+ .swipeActions(edge: .trailing) {
+ Button() {
+ print("\(task.taskItem) is being marked as complete.")
+ // TODO: Add method to complete message in the DataStore & move to Archive list
+ } label: {
+ Label("Complete", systemImage: "checkmark")
+ }
+ .tint(.green)
Button() {
print("\(task.taskItem) is being edited.")
// TODO: Add method to edit message in the DataStore