Contents

init(for:summary:optionsCollections:)

Creates an object that represents the App Shortcut with the specified parameters.

Declaration

init(for keyPath: ParameterKeyPath, summary: AppShortcutParameterPresentationSummary<Intent, Value, Parameter, ParameterKeyPath>, @AppShortcutOptionsCollectionSpecificationBuilder<Value.UnwrappedType> optionsCollections: () -> some AppShortcutOptionsCollectionSpecification<Value.UnwrappedType>)

Parameters

  • keyPath:

    A KeyPath representing the parameter being used in the presentation.

  • summary:

    Represents the summary of the parameter used in the presentation.

  • optionsCollections:

    A closure returning an AppShortcutOptionsCollectionSpecification that defines the options available for the parameter used in the presentation.