---
title: "makePlayer(with:)"
framework: corehaptics
role: symbol
role_heading: Instance Method
path: "corehaptics/chhapticengine/makeplayer(with:)"
---

# makePlayer(with:)

Creates a standard haptic pattern player from a haptic pattern.

## Declaration

```swift
func makePlayer(with pattern: CHHapticPattern) throws -> any CHHapticPatternPlayer
```

## Parameters

- `pattern`: The haptic pattern you’d like the player to play.

## Mentioned in

Playing a single-tap haptic pattern Preparing your app to play haptics

## Return Value

Return Value A new pattern player instance.

## See Also

### Creating Haptic Pattern Players

- [makeAdvancedPlayer(with:)](corehaptics/chhapticengine/makeadvancedplayer(with:).md)
