---
title: "preciseLocation(in:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uitouch/preciselocation(in:)"
---

# preciseLocation(in:)

Returns a precise location for the touch, when available.

## Declaration

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

## Parameters

- `view`: The view that contains the touch.

## Mentioned in

Implementing coalesced touch support in an app

## Return Value

Return Value A precise location for the touch.

## Discussion

Discussion Use this method to get additional precision for a touch (when available). Do not use the returned point for hit testing. In some cases, hit testing can indicate that the touch is within a view, but hit testing against the more precise location may indicate that the touch is outside of the view.

## See Also

### Getting the location of a touch

- [location(in:)](uikit/uitouch/location(in:)-8rd36.md)
- [previousLocation(in:)](uikit/uitouch/previouslocation(in:)-22sws.md)
- [view](uikit/uitouch/view.md)
- [window](uikit/uitouch/window.md)
- [majorRadius](uikit/uitouch/majorradius.md)
- [majorRadiusTolerance](uikit/uitouch/majorradiustolerance.md)
- [precisePreviousLocation(in:)](uikit/uitouch/precisepreviouslocation(in:).md)
