---
title: "setTargetOffsetFromCenter(_:for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipushbehavior/settargetoffsetfromcenter(_:for:)"
---

# setTargetOffsetFromCenter(_:for:)

Sets the offset, from the center of a dynamic item, at which to apply the push behavior’s force vector.

## Declaration

```swift
func setTargetOffsetFromCenter(_ o: UIOffset, for item: any UIDynamicItem)
```

## Parameters

- `o`: The offset, from the center of the dynamic item, at which to apply the push behavior’s force vector.
- `item`: The dynamic item for which you’re setting a target offset.

## Discussion

Discussion If you don’t set a target offset for a dynamic item, a push behavior’s force vector is applied at the item center.

## See Also

### Configuring a push behavior

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