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

# location(in:)

Returns the location of the drag activity within the specified view.

## Declaration

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

## Parameters

- `view`: The view that is used to determine the location of the drag activity.

## Return Value

Return Value A point in the local coordinate system of view.

## Discussion

Discussion To get the location of the drag activity within the window, use nil for the view.
