---
title: "targetOffsetFromCenter(for:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uipushbehavior/targetoffsetfromcenter(for:)"
---

# targetOffsetFromCenter(for:)

Returns the offset, from the center of a dynamic item, at which the push behavior’s force vector is applied.

## Declaration

```swift
func targetOffsetFromCenter(for item: any UIDynamicItem) -> UIOffset
```

## Parameters

- `item`: The dynamic item for which you’re retrieving the target offset.

## Return Value

Return Value The offset, from the center of the dynamic item, at which the push behavior’s force vector is applied. If you haven’t set a target offset, returns the center of the dynamic item.

## 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)
- [setTargetOffsetFromCenter(_:for:)](uikit/uipushbehavior/settargetoffsetfromcenter(_:for:).md)
- [pushDirection](uikit/uipushbehavior/pushdirection.md)
