---
title: "touchesShouldBegin(_:with:in:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiscrollview/touchesshouldbegin(_:with:in:)"
---

# touchesShouldBegin(_:with:in:)

Overridden by subclasses to customize the default behavior when a finger touches down in displayed content.

## Declaration

```swift
func touchesShouldBegin(_ touches: Set<UITouch>, with event: UIEvent?, in view: UIView) -> Bool
```

## Parameters

- `touches`: A set of doc://com.apple.uikit/documentation/UIKit/UITouch instances that represent the touches for the starting phase of the event represented by event.
- `event`: An object representing the event to which the touch objects in touches belong.
- `view`: The subview in the content where the touch-down gesture occurred.

## Return Value

Return Value Return false if you don’t want the scroll view to send event messages to view. If you want view to receive those messages, return true (the default).

## Discussion

Discussion The default behavior of UIScrollView is to invoke the UIResponder event-handling methods of the target subview that the touches occur in.

## See Also

### Managing touches

- [touchesShouldCancel(in:)](uikit/uiscrollview/touchesshouldcancel(in:).md)
- [canCancelContentTouches](uikit/uiscrollview/cancancelcontenttouches.md)
- [delaysContentTouches](uikit/uiscrollview/delayscontenttouches.md)
- [directionalPressGestureRecognizer](uikit/uiscrollview/directionalpressgesturerecognizer.md)
