---
title: "periodic(_:delay:)"
framework: symbols
role: symbol
role_heading: Type Method
path: "symbols/symboleffectoptions/repeatbehavior/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.

## Declaration

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

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