Contents

content(forType:)

Searches a suggestion’s items for information of the given type.

Declaration

func content<Content>(forType content: Content.Type) async -> [Content] where Content : JournalingSuggestionAsset

Parameters

Return Value

An array that contains elements of the requested type, if they exist in the suggestion.

Discussion

The framework templates this method, where Content is JournalingSuggestionAsset, because the content argument is a Type rather than an enumeration case, or other primitive.

See Also

Accessing suggestion data by type