Understanding extensions
Extensions, particularly in iOS, aren't just for watchOS, they are used for many other components such as Today (widgets), photo sharing, custom keyboard, and audio.
Extensions are designed to allow interaction between the app and another UI element. Take the Today extension, for example —this is an external UI component that sits on your home screen in iOS, yet interacts directly with your app (and from within your app's project in Xcode).
You need to remember that extensions are not a permanent feature of your app, as a user can choose whether or not to interact with the extension or even enable it. Apple's guidelines suggest that when building an extension, think carefully about its design and make sure it looks ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access