Add button to remove a tag

This commit is contained in:
Christoph Hagen
2025-05-04 11:55:54 +02:00
parent a8920a4cd2
commit a4710d525b
4 changed files with 40 additions and 6 deletions

View File

@ -29,6 +29,12 @@ final class SelectedContent: ObservableObject {
}
}
func remove(_ tag: Tag) {
if self.tag == tag {
self.tag = nil
}
}
func remove(_ file: FileResource) {
if self.file == file {
self.file = nil