Implementing the custom compact view

To start implementing the Messages extension for The Daily Quote, a new extension should be added to the project. Pick the Messages extension and name it The Daily Quote Messages. Enable the App Groups capability for this extension and include Quotes.swift in the extension target, just like you've done before.

You will use the same view-controller containment technique you used when building the custom sticker pack. This time you will add the view controller that should be displayed to the extension's Storyboard without connecting it to MessagesViewController. Before you do this and create the interface, you should implement the code for the compact view. The compact view will feature a quote, the creator ...

Get Mastering iOS 12 Programming - 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.