Shortcuts

  • Prompts the user to enter a piece of information.

    Result: Text

    See more

    Declaration

    Swift

    public struct AskForInput : Shortcut
  • Outputs the percentage of battery remaining as a number from 0 to 100.

    Result: Number

    See more

    Declaration

    Swift

    public struct BatteryLevel : Shortcut
  • Performs a number operation on the input and returns the result.

    Input: Text, Health sample, Boolean, Workout sample, Blood pressure, Number, Time interval, Date, File size, Currency Amount, Measurement

    Result: Number

    See more

    Declaration

    Swift

    public struct Calculate : Shortcut
  • Changes the case of the text passed into the action to UPPERCASE, lowercase, or Title Case.

    Input: Text

    Result: Text

    See more

    Declaration

    Swift

    public struct ChangeCase : Shortcut
  • Presents a menu of the items passed as input to the action and outputs the user’s selection.

    Input: Images, Dictionaries, Anything

    Result: Anything

    See more

    Declaration

    Swift

    public struct ChooseFromList : Shortcut
  • Presents a menu and runs different actions based on which menu item was chosen.

    See more

    Declaration

    Swift

    public struct ChooseFromMenu : Shortcut
  • This action lets you explain how part of a shortcut works. When run, this action does nothing.

    See more

    Declaration

    Swift

    public struct Comment : Shortcut
  • Copies content to the clipboard.

    Input: Anything

    Result: (Anything) The input

    See more

    Declaration

    Swift

    public struct CopyToClipboard : Shortcut
  • Given a list of files, this action returns the files that match the given criteria.

    Input: (Files) The files to filter through

    Result: (Files) The files that match the criteria.

    See more

    Declaration

    Swift

    public struct FilterFiles : Shortcut
  • Returns the contents of the clipboard.

    Result: Anything

    See more

    Declaration

    Swift

    public struct GetClipboard : Shortcut
  • Gets the contents of URLs passed into the action. Useful for downloading files and web content, or for making API requests.

    Input: URLs

    Result: (Files) The fetched data

    See more

    Declaration

    Swift

    public struct GetContentsOfURL : Shortcut
  • A list of key-value pairs as a dictionary.

    Result: Dictionary

    See more

    Declaration

    Swift

    public struct GetDictionary : Shortcut
  • Get Type: Returns the type of every item passed as input. For example, if a URL is passed, this action will return “URL”.

    See more

    Declaration

    Swift

    public struct GetType : Shortcut
  • Returns any links found in the input.

    Input: App Store apps, URLs, Places, Articles, iTunes products, Reminders, Contacts, Text, Maps links, Podcasts, Trello cards, Trello boards, Safari web pages, Dropbox files, Giphy items, Email addresses, Rich text, Dates, Calendar events, Podcast episodes, Phone numbers, iTunes artists

    Result: URLs

    See more

    Declaration

    Swift

    public struct GetURLsFromInput : Shortcut
  • If

    Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.

    Input: Anything

    Result: (Anything) The input

    See more

    Declaration

    Swift

    public struct If : Shortcut
  • Allows you to specify a list of items.

    Result: Text

    See more

    Declaration

    Swift

    public struct List : Shortcut
  • Adds a data point into the Health app. You can log anything that the Health app supports, including your weight, steps taken, running distance, caloric intake and more.

    Result: Health sample

    See more

    Declaration

    Swift

    public struct LogHealthSample<MeasurementType> : Shortcut where MeasurementType : HealthMeasurementType
  • Converts the rich text passed in to HTML text.

    See more

    Declaration

    Swift

    public struct MakeHTMLFromRichText : Shortcut
  • The “Nothing” shortcut. This is different from an EmptyShortcut value, which contains no actions.

    See more

    Declaration

    Swift

    public struct Nothing : Shortcut
  • Repeats the contained actions, running them either a specified number of times or once for each item in an input list.

    Input: (Anything) a list of items (optional)

    Result: (Anything) Every item passed to the “End Repeat” action

    See more

    Declaration

    Swift

    public struct Repeat : Shortcut
  • Replaces some text with other text.

    Input: Text

    Result: Text

    See more

    Declaration

    Swift

    public struct ReplaceText : Shortcut
  • Sets the device’s Low Power Mode to on or off.

    See more

    Declaration

    Swift

    public struct SetLowPowerMode : Shortcut
  • Sets the value of the specified variable to the input of this action.

    Input: Anything

    Result: (Anything) The input

    See more

    Declaration

    Swift

    public struct SetVariable : Shortcut
  • Prompts to share the input.

    Input: Anything

    Result: (Anything) The input

    See more

    Declaration

    Swift

    public struct Share : Shortcut
  • Displays an alert with a title, a message, and two buttons. If the user selects the OK button, the shortcut continues,. The cancel button stops the shortcut.

    See more

    Declaration

    Swift

    public struct ShowAlert : Shortcut
  • Shows the specified text in Siri or in an alert.

    Input: Text

    Input: (Text) The input

    See more

    Declaration

    Swift

    public struct ShowResult : Shortcut
  • Encodes or decodes text passed into the action to be suitable for inclusion in a URL by adding or removing percent escapes when appropriate.

    Input: Text

    Result: Text

    See more

    Declaration

    Swift

    public struct URLEncode : Shortcut