---
title: allowsAnimatedImageLooping
framework: webkit
role: symbol
role_heading: Instance Property
path: webkit/webpreferences/allowsanimatedimagelooping
---

# allowsAnimatedImageLooping

A Boolean that indicates whether or not the receiver allows animated images to loop.

## Declaration

```swift
var allowsAnimatedImageLooping: Bool { get set }
```

## Discussion

Discussion true if the web view should loop animated images, false otherwise. If image looping is disabled, the web view displays it as a static image. The number of times that an image loops is determined by parameters of the image file itself and cannot be set in the web view.

## See Also

### Handling Images

- [allowsAnimatedImages](webkit/webpreferences/allowsanimatedimages.md)
- [loadsImagesAutomatically](webkit/webpreferences/loadsimagesautomatically.md)
