hasContent(ofType:)
Checks if the suggestion contains information for the given type.
Declaration
func hasContent<Content>(ofType content: Content.Type) -> Bool where Content : JournalingSuggestionAssetParameters
- 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, because the content argument is a Type rather than an enumeration case, or other primitive.