Siri Shortcuts not available on older devices - How to check availability in code?

I have just read about the fact that siri shortcuts will not be available on older devices like iPhone 6: http://www.iphonehacks.com/2018/09/siri-shortcuts-not-available-for-iphone-6-5s.html


In my app I have implemented a button to create a siri shortcut and set a custom phrase. As far as I understand this button will not work on older devices running iOS 12.


How can I check in code if the Siri Shortcuts funcationality is available on the device I am running on? Checking the device identifier does not feel like a very reliable solution because Apple might change the Siri Shortcuts availability in the future.

Siri Shortcuts not available on older devices - How to check availability in code?
 
 
Q