<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Symbols",
  "identifier" : "/documentation/Symbols/SymbolEffectOptions/RepeatBehavior/periodic(_:delay:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Symbols"
    ],
    "preciseIdentifier" : "s:7Symbols19SymbolEffectOptionsV14RepeatBehaviorV8periodic_5delayAESiSg_SdSgtFZ"
  },
  "title" : "periodic(_:delay:)"
}
-->

# periodic(_:delay:)

A repeat behavior with a preferred play count and delay using periodic animations.
Periodic animations play the effect at regular intervals starting and stopping each time.

```
static func periodic(_ count: Int? = nil, delay: Double? = nil) -> SymbolEffectOptions.RepeatBehavior
```

## Parameters

`count`

The preferred number of times to play the
effect, or nil to request it play indefinitely. Very
large or small values may be clamped.

`delay`

The preferred delay between repetitions,
in seconds, or nil to request the default delay.

## Return Value

A new behavior with the preferred
play count and delay using periodic animations.

---

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)