---
title: repeatCount
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/camediatiming/repeatcount
---

# repeatCount

Determines the number of times the animation will repeat.

## Declaration

```swift
var repeatCount: Float { get set }
```

## Discussion

Discussion May be fractional. If the repeatCount is 0, it is ignored. Defaults to 0. If both repeatDuration and repeatCount are specified the behavior is undefined. Setting this property to greatestFiniteMagnitude will cause the animation to repeat forever.

## See Also

### Repeating Animations

- [repeatDuration](quartzcore/camediatiming/repeatduration.md)
