Implemented ability to delete annotations via swipe-to-delete gesture in the annotations list view. Added close button with X icon to dismiss the annotations sheet. Changes: - Added DeleteAnnotationUseCase with repository integration - Extended API with DELETE endpoint for annotations - Implemented swipe-to-delete in AnnotationsListView - Added error handling and optimistic UI updates - Updated toolbar with close button (X icon)
5 lines
192 B
Swift
5 lines
192 B
Swift
protocol PAnnotationsRepository {
|
|
func fetchAnnotations(bookmarkId: String) async throws -> [Annotation]
|
|
func deleteAnnotation(bookmarkId: String, annotationId: String) async throws
|
|
}
|