© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
S. Baruah, S. BaruahApp Development Using iOS iCloudhttps://doi.org/10.1007/978-1-4842-8758-3_7

7. Deleting a Table Record

Shantanu Baruah1   and Shaurya Baruah1
(1)
Somerset, NJ, USA
 

We now have a fully functional table view. We can add a book and we can display all books with their respective author’s name. In this chapter, we will learn how to delete a book record. From a user interface perspective, we will add the delete button to the table cell as a swipe gesture. So, when the user swipes left it will show the delete option and clicking the button will allow the user to delete the record.

Trailing Swipe Function

Swift UI Table View provides a function for ...

Get App Development Using iOS iCloud: Incorporating CloudKit with Swift in Xcode now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.