Fix double swipe actions close #615

This commit is contained in:
Thomas Ricouard 2023-02-04 13:30:07 +01:00
parent aae6b12666
commit 4c40adc195
1 changed files with 6 additions and 2 deletions

View File

@ -85,10 +85,14 @@ public struct StatusRowView: View {
}
.listRowBackground(viewModel.shouldHighlightRow ? theme.secondaryBackgroundColor : theme.primaryBackgroundColor)
.swipeActions(edge: .trailing) {
trailinSwipeActions
if !viewModel.isCompact {
trailinSwipeActions
}
}
.swipeActions(edge: .leading) {
leadingSwipeActions
if !viewModel.isCompact {
leadingSwipeActions
}
}
.accessibilityElement(children: viewModel.isFocused ? .contain : .combine)
.accessibilityActions {