<!--
{
  "availability" : [
    "macOS: 10.3.0 - 10.14.0"
  ],
  "documentType" : "symbol",
  "framework" : "WebKit",
  "identifier" : "/documentation/WebKit/WebPreferences/allowsAnimatedImageLooping",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "WebKit"
    ],
    "preciseIdentifier" : "c:objc(cs)WebPreferences(py)allowsAnimatedImageLooping"
  },
  "title" : "allowsAnimatedImageLooping"
}
-->

# allowsAnimatedImageLooping

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

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

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if the web view should loop animated images, <doc://com.apple.documentation/documentation/Swift/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.

---

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)