Custom UI in notifications 

To add custom UI to our notifications, we need to add an extension. Let's get started by doing the following:

  1. In the Navigator panel, select the Project navigator and then your project.
  2. At the bottom of the TARGETS area, click the + button.
  3. Select Notification Content Extension under Application Extension and then click Next:
  1. In the options screen that appears, set Product Name to LetsEatNotificationExtension and click Finish.

Now that our extension has been created, we need to be able to use it:

  1. Open the info.plist file in the LetsEatNotificationExtension folder.
  2. Tap the NSExtension disclosure arrow to open ...

Get iOS 12 Programming for Beginners - Third Edition 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.