Prepare cap deletion

This commit is contained in:
Christoph Hagen 2023-02-26 18:01:00 +01:00
parent 9cf1c236e0
commit 0cbddf61ab

View File

@ -138,6 +138,10 @@ struct ContentView: View {
Label("Rename", systemSymbol: .pencil)
}
.tint(.purple)
Button(role: .destructive) { startDeleteCap(cap: cap)
} label: {
Label("Delete", systemSymbol: .trashCircleFill)
}
}
.swipeActions(edge: .leading) {
Button {
@ -400,6 +404,10 @@ struct ContentView: View {
selectedCapToShowImages = cap
showImageOverviewForCap = true
}
private func startDeleteCap(cap: Cap) {
// TODO: Implement
}
}
struct ContentView_Previews: PreviewProvider {