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

# content(forType:)

Retrieves a suggestion’s contents by returning a structure specific to the given content type.

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

## Parameters

`content`

A type conforming to [`JournalingSuggestionAsset`](/documentation/JournalingSuggestions/JournalingSuggestionAsset) protocol.

## Return Value

An instance of the requested type, if it exists 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)