![siri shortcuts siri shortcuts](https://blogdh.any.do/wp-content/uploads/2018/10/siri-shortcuts-anydo-.jpg)
#Siri shortcuts code#
The app uses frameworks and app groups to share some code between the iOS app, watch app and extensions. Data added to the iOS app is independent of the watch app. Data sync between the phone and watch is beyond the scope of this article. Note: This article focuses on adding and running shortcuts on the Apple Watch. Tap + and add some hydration entries to see them populate in the list.Switch the active scheme to HydratorWatch.Check out the list of entries on the main view.Add a few hydration entries by tapping Create New Entry.
#Siri shortcuts simulator#
Select Hydrator from the scheme menu and select your paired phone and watch simulator in the Run Destination menu.You can now run the app and access it from both the phone and watch simulators. Your newly created simulator pair will now appear in the Run Destination list: OS Version: watchOS 7.2 or the latest SDK.Paired Simulator Name: Anything that accurately describes the watch simulator you want to use.In the second step, fill in the following information: OS Version: iOS 14.3 or the latest SDK.Device Type: Select any device you like here.Simulator Name: Make this something that describes the combination of phone and watch.In the dialog, fill in the following information: In Xcode, select Window ▸ Devices and Simulators.Ĭlick + on the bottom left to add a new simulator. If you don’t already have an iPhone simulator paired with a watch, follow these steps: Before you check it out, you need to make sure you have your simulator set up with a paired Apple Watch. This app assists in tracking your hydration intake throughout the day.
#Siri shortcuts download#
Getting Startedĭownload the starter project by clicking the Download Materials button at the top or bottom of the tutorial. This allows automatic provisioning to create all the necessary app identifiers and provisioning profiles as you work through this tutorial. Please make sure you sign into Xcode with your developer account. To see your intents in action, you need a physical watch.
![siri shortcuts siri shortcuts](https://venturebeat.com/wp-content/uploads/2018/06/siri-shortcuts.png)
![siri shortcuts siri shortcuts](https://d3ba08y2c5j5cf.cloudfront.net/wp-content/uploads/2018/12/14172805/Widget-Display-2.jpg)
This tutorial uses App Groups to share data between the apps and the intents you’ll build.Note: To follow along with this entire tutorial, you need: Understanding Siri Shortcuts and Intents.Hide contents Siri Shortcuts on Apple Watch