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+?
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