<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIPushBehavior/targetOffsetFromCenter(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIPushBehavior(im)targetOffsetFromCenterForItem:"
  },
  "title" : "targetOffsetFromCenter(for:)"
}
-->

# targetOffsetFromCenter(for:)

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

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

## Parameters

`item`

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

## 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.

## Discussion

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)