<!--
{
  "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(_:)-33816",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Symbols"
    ],
    "preciseIdentifier" : "s:7Symbols19SymbolEffectOptionsV6repeatyACSiSgFZ"
  },
  "title" : "repeat(_:)"
}
-->

# repeat(_:)

A default set of effect options with a preferred repeat count.

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

## Parameters

`count`

The preferred number of times to play the effect, or `nil` to request the default number of times. 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)