---
title: MLStateConstraint
framework: coreml
role: symbol
role_heading: Class
path: coreml/mlstateconstraint
---

# MLStateConstraint

Constraint of a state feature value.

## Declaration

```swift
class MLStateConstraint
```

## Topics

### Inspecting a state constraint

- [bufferShape](coreml/mlstateconstraint/buffershape-4zb3w.md)
- [dataType](coreml/mlstateconstraint/datatype.md)

### Initializers

- [init(coder:)](coreml/mlstateconstraint/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Model state

- [MLState](coreml/mlstate.md)
