O'Reilly logo

Learn iOS 11 Programming with Swift 4 - Second Edition by Craig Clayton

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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. 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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required