---
title: attachmentRange
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiattachmentbehavior/attachmentrange
---

# attachmentRange

The range of motion for the attachment behavior.

## Declaration

```swift
var attachmentRange: UIFloatRange { get set }
```

## Discussion

Discussion For sliding attachments, this property defines the range of motion (measured in points) supported along the given axis of translation. The specified range must always contain the value 0, which represents the starting point of movement for items. Items slide along the axis between the minimum and maximum values you specify. Setting this property to zero prevents items from sliding at all along their axis of translation. For pin attachments, this property defines the amount of rotation (measured in radians) supported in the counter-clockwise and clockwise directions. The specified range must contain the value 0, which represents the starting angle of each item. Items rotate around the anchor point between the minimum and maximum values you specify. Setting this property to zero prevents items from rotating at all. The default value of this property is infinite.

## See Also

### Configuring an attachment behavior

- [anchorPoint](uikit/uiattachmentbehavior/anchorpoint.md)
- [attachedBehaviorType](uikit/uiattachmentbehavior/attachedbehaviortype.md)
- [damping](uikit/uiattachmentbehavior/damping.md)
- [frequency](uikit/uiattachmentbehavior/frequency.md)
- [length](uikit/uiattachmentbehavior/length.md)
- [frictionTorque](uikit/uiattachmentbehavior/frictiontorque.md)
