Prepare cap deletion
This commit is contained in:
parent
9cf1c236e0
commit
0cbddf61ab
@ -138,6 +138,10 @@ struct ContentView: View {
|
|||||||
Label("Rename", systemSymbol: .pencil)
|
Label("Rename", systemSymbol: .pencil)
|
||||||
}
|
}
|
||||||
.tint(.purple)
|
.tint(.purple)
|
||||||
|
Button(role: .destructive) { startDeleteCap(cap: cap)
|
||||||
|
} label: {
|
||||||
|
Label("Delete", systemSymbol: .trashCircleFill)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.swipeActions(edge: .leading) {
|
.swipeActions(edge: .leading) {
|
||||||
Button {
|
Button {
|
||||||
@ -400,6 +404,10 @@ struct ContentView: View {
|
|||||||
selectedCapToShowImages = cap
|
selectedCapToShowImages = cap
|
||||||
showImageOverviewForCap = true
|
showImageOverviewForCap = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private func startDeleteCap(cap: Cap) {
|
||||||
|
// TODO: Implement
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct ContentView_Previews: PreviewProvider {
|
struct ContentView_Previews: PreviewProvider {
|
||||||
|
Loading…
Reference in New Issue
Block a user