---
title: "seek(to:toleranceBefore:toleranceAfter:completionHandler:)"
framework: avfoundation
role: symbol
role_heading: Instance Method
path: "avfoundation/avplayeritemintegratedtimeline/seek(to:tolerancebefore:toleranceafter:completionhandler:)"
---

# seek(to:toleranceBefore:toleranceAfter:completionHandler:)

Seeks to a particular time in the integrated time domain.

## Declaration

```swift
func seek(to time: CMTime, toleranceBefore: CMTime, toleranceAfter: CMTime, completionHandler: (@Sendable (Bool) -> Void)? = nil)
```

```swift
func seek(to time: CMTime, toleranceBefore: CMTime, toleranceAfter: CMTime) async -> Bool
```

## Parameters

- `time`: A time represented in the integrated time domain.
- `toleranceBefore`: A tolerance before the target time to allow.
- `toleranceAfter`: A tolerance after the target time to allow.
- `completionHandler`: A callback the system invokes after the seek completes. It passes a Boolean value of true if the playhead moved to the new time.

## See Also

### Seeking

- [seek(to:completionHandler:)](avfoundation/avplayeritemintegratedtimeline/seek(to:completionhandler:).md)
