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 ChooseFromList can select multiple items.

    See more

    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

    input

    The list to choose from, represented as a variable.

    prompt

    The instruction provided when the list is presented.

    selectionMode

    Enables multiple items to be chosen from the list.