<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BEScrollViewScrollUpdate/translation(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:objc(cs)BEScrollViewScrollUpdate(im)translationInView:"
  },
  "title" : "translation(in:)"
}
-->

# translation(in:)

Returns the scroll displacement in the coordinate system of the view that the update represents.

```
func translation(in view: UIView?) -> CGPoint
```

## Parameters

`view`

The view that contains the coordinate system to express the displacement. Pass `nil` to get the displacement in the window’s coordinate system.

## Return Value

The scroll displacement of the update in the specified view’s coordinate system.

## Discussion

A nonzero `x` or `y` value in the returned point indicates a displacement large enough to produce a visible change along that axis.

---

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)