<!--
{
  "availability" : [
    "iOS: 17.0.0 - 27.2.0",
    "iPadOS: 17.0.0 - 27.2.0",
    "macCatalyst: -",
    "macOS: 14.0.0 - 27.2.0",
    "tvOS: 17.0.0 - 27.2.0",
    "visionOS: 1.0.0 - 27.2.0",
    "watchOS: 10.0.0 - 27.2.0"
  ],
  "documentType" : "symbol",
  "framework" : "Symbols",
  "identifier" : "/documentation/Symbols/SymbolEffectOptions/repeat(_:)-314sv",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Symbols"
    ],
    "preciseIdentifier" : "s:7Symbols19SymbolEffectOptionsV6repeatyACSiSgF"
  },
  "title" : "repeat(_:)"
}
-->

# repeat(_:)

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

```
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

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

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)