<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPMusicPlayerController/repeatMode",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPMusicPlayerController(py)repeatMode"
  },
  "title" : "repeatMode"
}
-->

# repeatMode

The current repeat mode of the music player.

```
var repeatMode: MPMusicRepeatMode { get set }
```

## Discussion

For the available repeat modes, see [`MPMusicRepeatMode`](/documentation/MediaPlayer/MPMusicRepeatMode). If not explicitly set, `repeatMode` defaults to [`MPMusicRepeatMode.default`](/documentation/MediaPlayer/MPMusicRepeatMode/default).

---

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)