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

# location(in:)

Returns the geometrical location of the user’s drag activity within the specified view.

## Declaration

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

## Parameters

- `view`: The view whose coordinate system is used to get the location.

## Return Value

Return Value The location point of the drag activity, in the coordinate system of the specified view.
