iOS: show the peer list's Delete swipe action in red

The app-wide ink tint overrode the destructive role's red.
This commit is contained in:
Daniel Redetzke
2026-10-03 23:34:39 +03:00
parent 28415b867e
commit 5feb73100f
+2
View File
@@ -70,7 +70,9 @@ struct PeersView: View {
ForEach(filtered) { p in
NavigationLink(value: p.id) { PeerRow(peer: p, period: .month) }
.swipeActions(edge: .trailing) {
// The app-wide ink tint would override the destructive red.
Button(role: .destructive) { deleting = p } label: { Label("Delete", systemImage: "trash") }
.tint(Color.gwBad)
Button { Task { await toggle(p) } } label: {
Label(p.enabled ? "Disable" : "Enable", systemImage: p.enabled ? "pause.circle" : "play.circle")
}