<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UITouch/previousLocation(in:)-ea29",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UITouch(im)previousLocationInNode:"
  },
  "title" : "previousLocation(in:)"
}
-->

# previousLocation(in:)

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

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)