Action
public struct Action : Shortcut
An smallest representable unit of a shortcut, consistent of an identifier and encodable parameters.
-
Initalizes the shortcut with empty parameters.
Declaration
Swift
public init(identifier: String)Parameters
identifierThe identifier of the action as used by the Shortcuts app.
-
Initializes the shortcut.
Declaration
Swift
public init<Parameters>(identifier: String, parameters: Parameters) where Parameters : EncodableParameters
identifierThe identifier of the action as used by the Shortcuts app.
parametersThe encodable parameter payload as used by the Shortcuts app.
-
Declaration
Swift
public typealias Body = Never -
Declaration
Swift
public var body: Never { get }
View on GitHub
Action Structure Reference