diff --git a/README.md b/README.md index 63af6ea..a28cb47 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,6 @@ Why settle for pricey apps when you can have WordAX? We're here to prove that ef - [x] Implement logic - [ ] Make an apple watch version of the app - [ ] Option to add a hint -- [ ] Delete doesn't work - [ ] Add haptic touch
diff --git a/WordAX/Views/FlashCardListView.swift b/WordAX/Views/FlashCardListView.swift index 76d3f3b..58d9bf1 100644 --- a/WordAX/Views/FlashCardListView.swift +++ b/WordAX/Views/FlashCardListView.swift @@ -31,6 +31,11 @@ struct FlashCardListView: View { moc.delete(flashcard) } + do { + try moc.save() + } catch { + print("Something went wrong while deleting an object") + } }) } } else {