Adding a Today Extension to your app

In the code bundle for this chapter, you'll find a project called The Daily Quote. It's a straightforward app that displays a different inspirational quote to the user every day. The quotes are hardcoded in the Quotes.swift file and the current quote is stored in the UserDefaults store. The UI contains just two labels to show the current quote and the person that's quoted.

Even though the project is quite simple, each file contains something interesting. If you select one of the labels in the Storyboard and examine its attributes, you'll find that the font for the quote itself is Title 1 and the font for the quoted person is Caption 1. This is different from the default system font that you usually use. ...

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.