Instance Property


The distance, in points, between the two attachment points of the attachment behavior.


var length: CGFloat { get set }


Use this property to adjust the attachment length, if you want to, after creating an attachment. The system sets initial length automatically based on how you initialize the attachment.

See Also

Configuring an Attachment Behavior

var anchorPoint: CGPoint

The anchor point for the attachment behavior, if any.

var damping: CGFloat

The amount of damping to apply to the attachment behavior.

var frequency: CGFloat

The frequency of oscillation for the attachment behavior.

var frictionTorque: CGFloat

The amount of force needed to overcome rotational forces around an anchor point.

var attachmentRange: UIFloatRange

The range of motion for the attachment behavior.