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
identifier
The identifier of the action as used by the Shortcuts app.
-
Initializes the shortcut.
Declaration
Swift
public init<Parameters>(identifier: String, parameters: Parameters) where Parameters : Encodable
Parameters
identifier
The identifier of the action as used by the Shortcuts app.
parameters
The encodable parameter payload as used by the Shortcuts app.
-
Declaration
Swift
public typealias Body = Never
-
Declaration
Swift
public var body: Never { get }