Support new Siri AI APIs while keeping backwards compatibility

We are modernizing out in Intents and Entities to be ready for SiriAI. We would like to add more metdata (description & visibility) to our @Property annotations and use @ComputedProberty and DeferredProperty in some cases. But all of these APIs are only available on iOS 27 or even 27.x.

How would one use modern APIs to provide Siri AI with rich data while keeping backwards compatibility to iOS 17/18

Does the standard if #available help?

if #available(iOS 27.0, *) {
    // Use iOS 27+ API
} else {
    // Fallback for older iOS versions
}

Best,
——
Ziqiao Chen
 Worldwide Developer Relations.