<!--
{
  "availability" : [
    "iOS: 17.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "JournalingSuggestions",
  "identifier" : "/documentation/JournalingSuggestions/JournalingSuggestion/ItemContent",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Journaling Suggestions"
    ],
    "preciseIdentifier" : "s:21JournalingSuggestions0A10SuggestionV11ItemContentV"
  },
  "title" : "JournalingSuggestion.ItemContent"
}
-->

# JournalingSuggestion.ItemContent

A container for the information about a specific suggestion.

```
struct ItemContent
```

## Overview

When a person selects an event in the [`JournalingSuggestionsPicker`](/documentation/JournalingSuggestions/JournalingSuggestionsPicker),
the system invokes the `onCompletion` handler that your app declares for the picker and passes in a
[`JournalingSuggestion`](/documentation/JournalingSuggestions/JournalingSuggestion) instance. The journaling suggestion contains an array of
structures of this type in its [`items`](/documentation/JournalingSuggestions/JournalingSuggestion/items) property. Each instance of this structure
contains one or more concrete instances of [`JournalingSuggestionAsset`](/documentation/JournalingSuggestions/JournalingSuggestionAsset) that represent the
selection in the picker.

## Topics

### Identifying item contents

[`var representations: [any JournalingSuggestionAsset.Type]`](/documentation/JournalingSuggestions/JournalingSuggestion/ItemContent/representations)

An array of content types that a particular suggestion includes.

### Accessing suggestion data by type

[`func content<Content>(forType: Content.Type) async throws -> Content?`](/documentation/JournalingSuggestions/JournalingSuggestion/ItemContent/content(forType:))

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

[`func hasContent<Content>(ofType: Content.Type) -> Bool`](/documentation/JournalingSuggestions/JournalingSuggestion/ItemContent/hasContent(ofType:))

Checks if the suggestion contains information for the given type.

## Relationships

### Conforms To

[`Identifiable`](/documentation/Swift/Identifiable)

---

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)