---
title: "stateOfMind(_:)"
framework: healthkit
role: symbol
role_heading: Type Method
path: "healthkit/hksamplepredicate/stateofmind(_:)"
---

# stateOfMind(_:)

## Declaration

```swift
static func stateOfMind(_ predicate: NSPredicate? = nil) -> HKSamplePredicate<HKStateOfMind>
```
