---
title: MLSequenceConstraint
framework: coreml
role: symbol
role_heading: Class
path: coreml/mlsequenceconstraint
---

# MLSequenceConstraint

The constraints for a sequence feature.

## Declaration

```swift
class MLSequenceConstraint
```

## Topics

### Accessing the constraints

- [valueDescription](coreml/mlsequenceconstraint/valuedescription.md)
- [countRange](coreml/mlsequenceconstraint/countrange.md)

### Initializers

- [init(coder:)](coreml/mlsequenceconstraint/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

### Accessing feature constraints

- [stateConstraint](coreml/mlfeaturedescription/stateconstraint.md)
- [imageConstraint](coreml/mlfeaturedescription/imageconstraint.md)
- [MLImageConstraint](coreml/mlimageconstraint.md)
- [dictionaryConstraint](coreml/mlfeaturedescription/dictionaryconstraint.md)
- [MLDictionaryConstraint](coreml/mldictionaryconstraint.md)
- [multiArrayConstraint](coreml/mlfeaturedescription/multiarrayconstraint.md)
- [MLMultiArrayConstraint](coreml/mlmultiarrayconstraint.md)
- [sequenceConstraint](coreml/mlfeaturedescription/sequenceconstraint.md)
