---
title: shouldLoop
framework: realitykit
role: symbol
role_heading: Instance Property
path: realitykit/audiofileresource/configuration-swift.struct/shouldloop
---

# shouldLoop

Stores a Boolean indicating whether the playback loops infinitely, until manually stopped or paused.

## Declaration

```swift
var shouldLoop: Bool
```

## See Also

### Customizing the playback

- [shouldRandomizeStartTime](realitykit/audiofileresource/configuration-swift.struct/shouldrandomizestarttime.md)
