---
title: maxLength
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skphysicsjointlimit/maxlength
---

# maxLength

The maximum distance allowed between the two physics bodies connected by the limit joint.

## Declaration

```swift
var maxLength: CGFloat { get set }
```
