---
title: "content(forType:)"
framework: journalingsuggestions
role: symbol
role_heading: Instance Method
path: "journalingsuggestions/journalingsuggestion/content(fortype:)"
---

# content(forType:)

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

## Declaration

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

## Parameters

- `content`: A type that conforms to the doc://com.apple.JournalingSuggestions/documentation/JournalingSuggestions/JournalingSuggestionAsset protocol.

## Return Value

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

## Discussion

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. note: An error if the journaling suggestions picker encounters an unexpected issue.

## See Also

### Accessing suggestion data by type

- [items](journalingsuggestions/journalingsuggestion/items.md)
- [JournalingSuggestion.ItemContent](journalingsuggestions/journalingsuggestion/itemcontent.md)
