Creating App Extensions and Frameworks

So far, we’ve been talking about how projects manage settings and contents with the simple case of a single app target and possibly targets for unit tests and UI tests. As it turns out, projects can get a lot more complex than this.

More and more, apps are choosing to create app extensions, separate executables that have a relationship back to their host app. The first few extensions were for things like custom keyboards and notification center widgets, but with Apple adding more extension types every year, there are now more than 20 extension types. Some of these might not even initially appear to be app extensions, like providing custom actions for handling push notifications, intents to handle Siri voice ...

Get Xcode Treasures 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.