Adding 3D Touch quick actions
For our app, we are going to add four quick actions (which is the maximum amount that you can have). These actions will do the following:
- Launch the Map.
- Launch the locations.
- Select Los Angeles as a location.
- Select Las Vegas as a location.
There are two types of quick actions: static and dynamic. Static means that they cannot be changed and dynamic means that they can be. For example, Apple has 3D Touch on their Messages app. If you press hard on the Messages app, you will see one static quick action, New Message, and three dynamic quick actions, the three most texted contacts.
In our app, we will have two static quick actions, launching the Map tab and the locations list, and two dynamic quick actions, launching Los Angeles and Las Vegas as locations. Let's start setting up our quick actions:
- Right-click on the
Misc
folder inside theCommon
folder and select New File. - Inside the Choose a template for your new file screen, select iOS at the top and, then,...