ChooseFromList
public struct ChooseFromList : 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
-
Controls whether
See moreChooseFromListcan select multiple items.Declaration
Swift
public enum SelectionMode -
The contents of the shortcut.
Declaration
Swift
public var body: some Shortcut { get } -
Initializes the shortcut.
Declaration
Swift
public init(input: Variable, prompt: String = "", selectionMode: SelectionMode = .single)Parameters
inputThe list to choose from, represented as a variable.
promptThe instruction provided when the list is presented.
selectionModeEnables multiple items to be chosen from the list.
View on GitHub
ChooseFromList Structure Reference