CopyToClipboard
public struct CopyToClipboard : Shortcut
Copies content to the clipboard.
Input: Anything
Result: (Anything) The input
-
The contents of the shortcut.
Declaration
Swift
public var body: some Shortcut { get }
-
Initializes the shortcut.
Declaration
Swift
public init(content: Variable, isLocalOnly: Bool = false, expiration: String = "")
Parameters
content
The content to copy.
isLocalOnly
When enabled, the input will only be copied locally, and will not be shared to other devices via Handoff.
expiration
When set, the clipboard contents will expire and be automatically deleted at the specified time.