×

Run Action on Draft

iOS 14 +

Notes

Run action in Drafts using specified draft

Syntax

runActionOnDraft(action: <#Object (Action)#>, draft: <#Object (Draft)#>)

Example

runActionOnDraft(action: Action(identifier: "coolID", displayString: "My Custom Action", name: "My Custom Action"), draft: Draft(identifier: "F5BD82B1BA4", displayString: "Default Draft", uuid: "F5BD82B1BA4", link: "drafts://open?uuid=F5BD82B1BA4", content: "Some really cool content", title: "Default Draft", tags: ["Default Draft"], folder: inbox, isFlagged: false, grammarType: GrammarType(displayString: "Markdown", identifier: "Markdown")))