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

# location(in:)

Indicates the location of the touch in the view’s coordinates.

## Declaration

```swift
func location(in view: NSView?) -> NSPoint
```

## See Also

### Getting the Touch Location

- [previousLocation(in:)](appkit/nstouch/previouslocation(in:).md)
