---
title: magnitude
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uipushbehavior/magnitude
---

# magnitude

The magnitude of the force vector for the push behavior.

## Declaration

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

## Discussion

Discussion The default magnitude is 0.0, equivalent to no force. A continuous force vector with a magnitude of 1.0, applied to a 100 point x 100 point view whose density value is 1.0, results in view acceleration of 100 points / second² in the direction indicated by the angle or pushDirection property. Setting the magnitude parameter to a negative value reverses the direction of the force.

## See Also

### Configuring a push behavior

- [setAngle(_:magnitude:)](uikit/uipushbehavior/setangle(_:magnitude:).md)
- [angle](uikit/uipushbehavior/angle.md)
- [mode](uikit/uipushbehavior/mode-swift.property.md)
- [setTargetOffsetFromCenter(_:for:)](uikit/uipushbehavior/settargetoffsetfromcenter(_:for:).md)
- [targetOffsetFromCenter(for:)](uikit/uipushbehavior/targetoffsetfromcenter(for:).md)
- [pushDirection](uikit/uipushbehavior/pushdirection.md)
