Improve buttons

This commit is contained in:
Christoph Hagen
2025-05-04 20:59:45 +02:00
parent f968ccad29
commit d779b7a42c
6 changed files with 31 additions and 41 deletions

View File

@ -1,20 +0,0 @@
import SwiftUI
struct DeleteButton: View {
let action: () -> Void
var body: some View {
Button(action: action) {
HStack {
Spacer()
Image(systemSymbol: .trash)
Text("Delete")
.padding(.vertical, 8)
Spacer()
}
.foregroundStyle(Color.white)
.background(RoundedRectangle(cornerRadius: 8).fill(Color.red))
}.buttonStyle(.plain)
}
}