---
title: "location(in:)"
framework: browserenginekit
role: symbol
role_heading: Instance Method
path: "browserenginekit/bescrollviewscrollupdate/location(in:)"
---

# location(in:)

Returns the location of the scroll update in the coordinate system of the given view.

## Declaration

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

## Parameters

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

## Return Value

Return Value The location of the scroll update in the specified view’s coordinate system.

## See Also

### Transforming coordinates

- [translation(in:)](browserenginekit/bescrollviewscrollupdate/translation(in:).md)
