---
title: shapeConstraint
framework: coreml
role: symbol
role_heading: Instance Property
path: coreml/mlmultiarrayconstraint/shapeconstraint
---

# shapeConstraint

The constraint on the shape of the multiarray.

## Declaration

```swift
var shapeConstraint: MLMultiArrayShapeConstraint { get }
```

## See Also

### Accessing the Constraints

- [shape](coreml/mlmultiarrayconstraint/shape.md)
- [dataType](coreml/mlmultiarrayconstraint/datatype.md)
- [MLMultiArrayShapeConstraint](coreml/mlmultiarrayshapeconstraint.md)
