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

# location(in:)

Returns the location of the user interaction in the specified view’s coordinate system.

## Declaration

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

## Parameters

- `view`: The view containing the target coordinate system. To return a point in the window’s coordinate system, specify nil.

## Return Value

Return Value The location of the interaction in the coordinate system of view.

## See Also

### Managing edit menu interactions

- [delegate](uikit/uieditmenuinteraction/delegate.md)
- [presentEditMenu(with:)](uikit/uieditmenuinteraction/presenteditmenu(with:).md)
- [reloadVisibleMenu()](uikit/uieditmenuinteraction/reloadvisiblemenu().md)
- [updateVisibleMenuPosition(animated:)](uikit/uieditmenuinteraction/updatevisiblemenuposition(animated:).md)
- [dismissMenu()](uikit/uieditmenuinteraction/dismissmenu().md)
