---
title: "hasContent(ofType:)"
framework: journalingsuggestions
role: symbol
role_heading: Instance Method
path: "journalingsuggestions/journalingsuggestion/itemcontent/hascontent(oftype:)"
---

# hasContent(ofType:)

Checks if the suggestion contains information for the given type.

## Declaration

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

## Parameters

- `content`: The type of information to check for.

## Return Value

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

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

## See Also

### Accessing suggestion data by type

- [content(forType:)](journalingsuggestions/journalingsuggestion/itemcontent/content(fortype:).md)
