---
title: shouldEnableLimits
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skphysicsjointsliding/shouldenablelimits
---

# shouldEnableLimits

A Boolean value that indicates whether the sliding joint is restricted so that the objects may only slide a finite distance from the initial anchor point.

## Declaration

```swift
var shouldEnableLimits: Bool { get set }
```

## Discussion

Discussion The default value is false. If true, then the lowerDistanceLimit and upperDistanceLimit properties are used to limit the distance of the sliding joint.

## See Also

### Configuring a Sliding Joint

- [lowerDistanceLimit](spritekit/skphysicsjointsliding/lowerdistancelimit.md)
- [upperDistanceLimit](spritekit/skphysicsjointsliding/upperdistancelimit.md)
