<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreHaptics",
  "identifier" : "/documentation/CoreHaptics/CHHapticAudioResourceKeyLoopEnabled",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Core Haptics"
    ],
    "preciseIdentifier" : "c:@CHHapticAudioResourceKeyLoopEnabled"
  },
  "title" : "CHHapticAudioResourceKeyLoopEnabled"
}
-->

# CHHapticAudioResourceKeyLoopEnabled

A key for a Boolean value that indicates whether to loop audio playback.

```
let CHHapticAudioResourceKeyLoopEnabled: String
```

## Discussion

Set a <doc://com.apple.documentation/documentation/Swift/true> value for this key to loop the contents of an audio file.

The default value is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)