---
title: "stop(atTime:)"
framework: corehaptics
role: symbol
role_heading: Instance Method
path: "corehaptics/chhapticpatternplayer/stop(attime:)"
---

# stop(atTime:)

Stops playing the pattern at the specified time.

## Declaration

```swift
func stop(atTime time: TimeInterval) throws
```

## Parameters

- `time`: The time at which to stop playing the pattern.

## Discussion

Discussion If time is 0 or any value less than the haptic engine’s currentTime, the pattern stops playing immediately.

## See Also

### Starting and Stopping Playback

- [start(atTime:)](corehaptics/chhapticpatternplayer/start(attime:).md)
- [cancel()](corehaptics/chhapticpatternplayer/cancel().md)
