Sunday, October 2, 2022
HomeiOS Developmentios - Beginner to Swift with query about Siri and App Intents

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 via tutorials and studying the docs and so forth.. and am getting a newbie fundamental understanding. I wrote a useful app and was capable of make it look good and work.

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

The previous couple of days I’ve been making an attempt 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 so forth.. and also you get the concept..

What I believe I perceive after quite a lot of studying is that Siri help was solely constructed inside apple apps and was not allowed in third celebration apps. Then I believe round iOS 10, they added third celebration help. The factor is the third celebration help allowed you to make use of Siri, however to mainly use it for beforehand outlined features, like ship a message, add a reminder and so forth.. Very particular issues.

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

What I’m on the lookout for from you guys, the operate I need 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 have to reply. Whether it is, is it solely obtainable with iOS 16 at this level?

Whether it is doable with 15.x are you able to level me to some docs that might assist me perceive what I have to do to implement it. I maintain getting misplaced in paperwork that appear like they do not apply to my scenario or they’re very outdated. Possibly that is simply over my head at this level as nicely. I’m utilizing SwiftUI for my app as nicely if that makes any distinction.

Thanks.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments