AskForInput

public struct AskForInput : Shortcut

Prompts the user to enter a piece of information.

Result: Text

  • The contents of the shortcut.

    Declaration

    Swift

    public var body: some Shortcut { get }
  • Initializes the shortcut.

    Declaration

    Swift

    public init(prompt: Text, defaultAnswer: Text? = nil)

    Parameters

    prompt

    The instruction provided when the list is presented.

    defaultAnswer

    The result to use if no answer is provided.