---
title: "previousLocation(in:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitouch/previouslocation(in:)-ea29"
---

# previousLocation(in:)

Returns the previous location of the touch in the coordinate system of the given node.

## Declaration

```swift
func previousLocation(in node: SKNode) -> CGPoint
```

## Parameters

- `node`: A node that is a descendant of a scene presented in the window that received the touch event.

## Return Value

Return Value The location of the touch in the node’s coordinate system.

## See Also

### Working with touch events in SpriteKit

- [location(in:)](uikit/uitouch/location(in:)-44h4k.md)
