ios – Beginner to Swift with query about Siri and App Intents


Okay so I began out as a programmer and was coding in Turbo Pascal and C by the point I used to be 16, received a job with IBM began coding in REXX for just a few customers, received burnt out and jumped into networking. That was 30 years in the past… Anyway determined I needed to leap again in and star studying Swift and SwiftUI. Been going by means of tutorials and studying the docs and many others.. and am getting a newbie fundamental understanding. I wrote a practical app and was in a position to make it look good and work.

So there’s a easy addition that happens in my app whenever you press a button. I assumed, man that may be much more handy, if I may say hey siri “add to my app” form of factor. Then the person would not need to hit a button and all I must do is increment a variable.

The previous few days I’ve been attempting to determine this out and there’s a lot of documentation, however some use the SiriKit and a few use intents and a few makes use of storyboard and many others.. and also you get the concept..

What I feel I perceive after lots of studying is that Siri help was solely constructed inside apple apps and was not allowed in third get together apps. Then I feel round iOS 10, they added third get together help. The factor is the third get together help allowed you to make use of Siri, however to mainly use it for beforehand outlined capabilities, like ship a message, add a reminder and many others.. Very particular issues.

What I wish to do is straightforward change of variable by saying one thing to Siri. Now I feel based mostly on a video I noticed in WWDC22, that possibly with IOS 16 and AppIntents I can do that however undecided.

What I’m on the lookout for from you guys, the perform I wish to carry out, is it doable? Can I simply inform siri one thing and based mostly on what I inform siri, a variable will get incremented. Siri doesn’t must reply. Whether it is, is it solely accessible with iOS 16 at this level?

Whether it is doable with 15.x are you able to level me to some docs that may assist me perceive what I must do to implement it. I preserve getting misplaced in paperwork that appear like they do not apply to my state of affairs or they’re very previous. Possibly that is simply over my head at this level as properly. I’m utilizing SwiftUI for my app as properly if that makes any distinction.

Thanks.

Leave a Reply