<!--
{
  "availability" : [
    "iOS: 17.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "JournalingSuggestions",
  "identifier" : "/documentation/JournalingSuggestions/JournalingSuggestion/content(forType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Journaling Suggestions"
    ],
    "preciseIdentifier" : "s:21JournalingSuggestions0A10SuggestionV7content7forTypeSayxGxm_tYaAA0aC5AssetRzlF"
  },
  "title" : "content(forType:)"
}
-->

# content(forType:)

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

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

## Parameters

`content`

A type that conforms to the [`JournalingSuggestionAsset`](/documentation/JournalingSuggestions/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`](/documentation/JournalingSuggestions/JournalingSuggestionAsset), because
the `content` argument is a `Type` rather than an enumeration case, or other primitive.

> Throws: An error if the journaling suggestions picker encounters an unexpected issue.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)