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

# hasContent(ofType:)

Checks if the suggestion contains information for the given type.

```
func hasContent<Content>(ofType content: Content.Type) -> Bool where Content : JournalingSuggestionAsset
```

## Parameters

`content`

The type of information to check for.

## Return Value

`true`, if the suggestion contains information for the given type; otherwise, `false`.

## 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.

---

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)