|
|
@@ -43,7 +43,7 @@ struct ProjectPanelView: View {
|
|
|
List {
|
|
|
ForEach($item.tasks) { task in
|
|
|
TaskView(task: task)
|
|
|
- .contextMenu {
|
|
|
+ .swipeActions {
|
|
|
Button("Delete", systemImage: "trash", role: .destructive) {
|
|
|
deleteItem(item: task.wrappedValue, from: item)
|
|
|
}
|
|
|
@@ -51,7 +51,7 @@ struct ProjectPanelView: View {
|
|
|
|
|
|
ForEach(task.subtasks) { subtask in
|
|
|
SubTaskView(task: subtask)
|
|
|
- .contextMenu {
|
|
|
+ .swipeActions {
|
|
|
Button("Delete", systemImage: "trash", role: .destructive) {
|
|
|
deleteItem(item: subtask.wrappedValue, from: task.wrappedValue)
|
|
|
}
|