---
title: dragField()
framework: uikit
role: symbol
role_heading: Type Method
path: uikit/uifieldbehavior/dragfield()
---

# dragField()

Creates and returns a field behavior for slowing an object’s velocity.

## Declaration

```swift
class func dragField() -> Self
```

## Return Value

Return Value A field behavior object that applies a drag force to items.

## Discussion

Discussion This field simulates the force of friction on an item. The force is applied in the opposite direction of the affected item’s velocity vector and has a magnitude that is proportional to the field’s strength property and the item’s current velocity.

## See Also

### Getting the field behaviors

- [springField()](uikit/uifieldbehavior/springfield().md)
- [velocityField(direction:)](uikit/uifieldbehavior/velocityfield(direction:).md)
- [electricField()](uikit/uifieldbehavior/electricfield().md)
- [magneticField()](uikit/uifieldbehavior/magneticfield().md)
- [radialGravityField(position:)](uikit/uifieldbehavior/radialgravityfield(position:).md)
- [linearGravityField(direction:)](uikit/uifieldbehavior/lineargravityfield(direction:).md)
- [vortexField()](uikit/uifieldbehavior/vortexfield().md)
- [noiseField(smoothness:animationSpeed:)](uikit/uifieldbehavior/noisefield(smoothness:animationspeed:).md)
- [turbulenceField(smoothness:animationSpeed:)](uikit/uifieldbehavior/turbulencefield(smoothness:animationspeed:).md)
- [field(evaluationBlock:)](uikit/uifieldbehavior/field(evaluationblock:).md)
