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

# backgroundVerticalPositionAdjustment(for:)

Returns the background vertical position offset for specified bar metrics.

```
func backgroundVerticalPositionAdjustment(for barMetrics: UIBarMetrics) -> CGFloat
```

## Parameters

`barMetrics`

Bar metrics.

## Return Value

The background vertical position offset for `barMetrics`.

## Discussion

This offset is used to adjust the vertical centering of bordered bar buttons within the bar.

---

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)