Chapter 10
List Deletion, Swipe Actions, Context Menus and Activity Controller

If you spend too much time thinking about a thing, you'll never get it done. Make at least one definite move daily toward your goal.

– Bruce Lee

In the previous chapter, you learned how to handle row selection. However, what about deletion? How can we remove a row from a list view? This is a common question when developing a list-based app. Selecting, deleting, inserting, and updating are fundamental operations when working with data. We have already discussed row selection, so in this chapter, let's focus on deletion. Additionally, we will explore a couple of new features added to the FoodPin app:

  1. Adding a custom action button when a user swipes horizontally in a table row. This is usually known as swipe actions in SwiftUI.
  2. Adding a social sharing feature to the app, that enables users to easily share the restaurants.

There is a lot to learn in this chapter, but it's going to be fun and rewarding.

To access the full version of the book, please get the full copy here. You will also be able to access the full source code of the project.

results matching ""

    No results matching ""