Do INIntent subclasses really require iOS 12?

139 Views Asked by At

When creating an Intents.intentdefinition file, the generated Intent subclass source defines the class as:

@available(iOS 12.0, macOS 10.16, watchOS 5.0, *) @available(tvOS, unavailable)
@objc(OrderSoupIntent)
public class OrderSoupIntent: INIntent {}

But INIntent became available in iOS 10: https://developer.apple.com/documentation/sirikit/inintent

Why is the generated class iOS 12+ only? Can it be iOS 11+?

1

There are 1 best solutions below

0
On BEST ANSWER

I found that custom intents was introduced in iOS 12. While I couldn't find in the SiriKit documentation, here's the WWDC video introducing the feature: https://developer.apple.com/videos/play/wwdc2018/211

Siri Shortcuts are a powerful new feature in iOS 12 that allow your app to expose its functionality to Siri.