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 : JournalingSuggestionAssetParameters
- content:
A type that conforms to the Journalingsuggestionasset protocol.
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.