Commit 24feba272c
Unsigned
Layout: unified · split
Hutch/Views/Lists/MailingListListView.swift +5 −1
| @@ -367,7 +367,11 @@ struct MailingListListView: View { | ||
| 367 | 367 | } |
| 368 | 368 | .padding(.vertical, 2) |
| 369 | 369 | } |
| 370 | .swipeActions(edge: .trailing) { | |
| 370 | // allowsFullSwipe: false, as in PasteListView. A destructive | |
| 371 | // action left to full-swipe animates the row out on the gesture, | |
| 372 | // before the confirmation is answered, so it flickers back when | |
| 373 | // the data has not actually changed. | |
| 374 | .swipeActions(edge: .trailing, allowsFullSwipe: false) { | |
| 371 | 375 | if isOwned(mailingList) { |
| 372 | 376 | Button(role: .destructive) { |
| 373 | 377 | pendingDeletion = mailingList |
Hutch/Views/Repositories/ArtifactsView.swift +3 −1
| @@ -22,7 +22,9 @@ struct ArtifactsView: View { | ||
| 22 | 22 | ArtifactRow(artifact: artifact) { |
| 23 | 23 | openURL(artifact.url) |
| 24 | 24 | } |
| 25 | .swipeActions(edge: .trailing) { | |
| 25 | // See MailingListListView: a full-swipe destructive | |
| 26 | // action animates the row out before the confirmation. | |
| 27 | .swipeActions(edge: .trailing, allowsFullSwipe: false) { | |
| 26 | 28 | if isOwnedByCurrentUser { |
| 27 | 29 | Button(role: .destructive) { |
| 28 | 30 | pendingDeletion = artifact |