Add button to remove post

This commit is contained in:
Christoph Hagen
2025-05-04 11:48:09 +02:00
parent d6502fb09c
commit 329519e15b
6 changed files with 56 additions and 0 deletions

View File

@ -16,4 +16,10 @@ final class SelectedContent: ObservableObject {
@Published
var file: FileResource?
func remove(_ post: Post) {
if self.post == post {
self.post = nil
}
}
}