---
title: loops
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nssound/loops
---

# loops

A Boolean that indicates whether the sound restarts playback when it reaches the end of its content.

## Declaration

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

## Discussion

Discussion When the value of this property is true, the sounds restarts playback when it finishes and does not send sound(_:didFinishPlaying:) to its delegate when it reaches the end of its content and restarts playback. The default value of this property is false.

## See Also

### Configuring Sounds

- [name](appkit/nssound/name-swift.property.md)
- [NSSound.Name](appkit/nssound/name-swift.typealias.md)
- [setName(_:)](appkit/nssound/setname(_:).md)
- [volume](appkit/nssound/volume.md)
- [currentTime](appkit/nssound/currenttime.md)
- [playbackDeviceIdentifier](appkit/nssound/playbackdeviceidentifier-swift.property.md)
- [NSSound.PlaybackDeviceIdentifier](appkit/nssound/playbackdeviceidentifier-swift.typealias.md)
