Submitting an action requires advanced Swift knowledge. I don't have time for low-quality pull requests.
- Open an issue for discussion first.
- One action addition per pull request, unless they are connected.
- Please help review the other open pull requests and action proposals.
- Meet Shortcuts for macOS - WWDC2021
- Design great actions for Shortcuts, Siri, and Suggestions - WWDC2021
- Shortcuts - Human Interface Guidelines
- Adding User Interactivity with Siri Shortcuts and the Shortcuts App
- Demystifying Siri, Part 2: Creating a Custom Intent
- Open the Xcode project, select the
Intents
file, and click the+
button in the intents editor. - Keep the naming, description, and checkboxes consistent with existing actions.
- Create a new Swift file in the
IntentsExtension/Actions
directory named the same as the intent title. Make sure it's included in both the macOS and iOS extension targets. - Add the intent to the
IntentHandler
file. - Implement the logic. Try to create reusable extensions whenever it makes sense.
- Run the “Actions (macOS)” target, which will open the app and then open the Shortcuts app. You can then test out your work. If you need to debug, run the
IntentsExtension (macOS)
target instead and useShortuts
as the target app. - Add the action to
readme.md
andapp-store-description.txt
.
- Make sure you test on both macOS and iOS before submitting a pull request.
- Make sure linting passes.
- Use tab-indentation.
- The pull request should be titled
Add `Get Foo` action
whereGet Foo
is the name of the action. - Include a
Fixes #12
notation in the pull request description referencing the related issue.