---
title: "location(in:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uicontextmenuinteraction/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 specified in the coordinate system of view.
