---
title: kCGImageAnimationLoopCount
framework: imageio
role: symbol
role_heading: Global Variable
path: imageio/kcgimageanimationloopcount
---

# kCGImageAnimationLoopCount

The number of times to repeat the animated sequence.

## Declaration

```swift
let kCGImageAnimationLoopCount: CFString
```

## Discussion

Discussion The value of this property is a CFNumber that contains an unsigned integer. To override the loop count value in the image file, include this property in the options dictionary when animating an image. You may specify kCFNumberPositiveInfinity for this property to animate the images continuously.

## See Also

### Animations

- [CGAnimateImageAtURLWithBlock(_:_:_:)](imageio/cganimateimageaturlwithblock(_:_:_:).md)
- [CGAnimateImageDataWithBlock(_:_:_:)](imageio/cganimateimagedatawithblock(_:_:_:).md)
- [CGImageSourceAnimationBlock](imageio/cgimagesourceanimationblock.md)
- [kCGImageAnimationStartIndex](imageio/kcgimageanimationstartindex.md)
- [kCGImageAnimationDelayTime](imageio/kcgimageanimationdelaytime.md)
- [CGImageAnimationStatus](imageio/cgimageanimationstatus.md)
