---
title: "repeat(_:)"
framework: symbols
role: symbol
role_heading: Instance Method
path: "symbols/symboleffectoptions/repeat(_:)-314sv"
---

# repeat(_:)

Creates a set of effect options with a preferred repeat count.

## Declaration

```swift
func `repeat`(_ count: Int?) -> SymbolEffectOptions
```

## Parameters

- `count`: The preferred number of times to play the effect, or nil to request the default number of repeats. The function may clamp very large or small values.

## Return Value

Return Value A new set of effect options with the preferred repeat count.

## See Also

### Configuring repeating effects

- [repeating](symbols/symboleffectoptions/repeating-swift.property.md)
- [repeating](symbols/symboleffectoptions/repeating-swift.type.property.md)
- [nonRepeating](symbols/symboleffectoptions/nonrepeating-swift.property.md)
- [nonRepeating](symbols/symboleffectoptions/nonrepeating-swift.type.property.md)
- [repeat(_:)](symbols/symboleffectoptions/repeat(_:)-33816.md)
