remove labels from swipe actions

This commit is contained in:
Satindar Dhillon 2022-04-13 20:03:41 -07:00
parent a7e01275ae
commit adaadd27d6

View file

@ -226,13 +226,7 @@ import Views
}
if #available(iOS 15.0, *) {
link
.swipeActions(edge: .trailing, allowsFullSwipe: false) {
Button(
action: { viewModel.itemUnderLabelEdit = item },
label: { Label("Edit Labels", systemImage: "tag") }
)
}
.swipeActions(edge: .trailing, allowsFullSwipe: false) {
.swipeActions(edge: .trailing, allowsFullSwipe: true) {
if !item.isArchived {
Button {
withAnimation(.linear(duration: 0.4)) {
@ -251,7 +245,7 @@ import Views
}.tint(.indigo)
}
}
.swipeActions(edge: .trailing, allowsFullSwipe: false) {
.swipeActions(edge: .trailing, allowsFullSwipe: true) {
Button(
role: .destructive,
action: {