A beginner’s guide to developing Custom Intent Siri Shortcuts for iOS 12

Peter Minarik
Jul 7, 2018 · 11 min read

Our App

Our very simple app

Let’s get started

Enable the Siri Capability

Enable Siri

Add Targets

Add the Intents Extension Target
Choose a name for the extension and keep the “Include UI Extension” checkbox checked to add the second target right after this one.

Intent Definition File

Our quite simple “PhotoOfTheDay” intent
All the possible responses that Siri will give
Target Membership so that the generated Classes are available in all targets

Handling the intent

We handle our intent in our own IntentHandler class (which we still have to create)
Adding our existing app files to the two new targets

Donating the Shortcuts

Let’s run what we’ve built so far

Add the missing UI

The IntentViewController’s default implementation
Our simple UI


Peter Minarik

Written by

👋 Mostly web & mobile nerdery. Engineer at @SoundCloud

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade