---
title: ContentRating
framework: musickit
role: symbol
role_heading: Enumeration
path: musickit/contentrating
---

# ContentRating

The rating of the content that potentially plays while playing a resource.

## Declaration

```swift
enum ContentRating
```

## Overview

Overview A nil value means no rating is available for this resource.

## Topics

### Enumeration Cases

- [ContentRating.clean](musickit/contentrating/clean.md)
- [ContentRating.explicit](musickit/contentrating/explicit.md)

## Relationships

### Conforms To

- [Decodable](swift/decodable.md)
- [Encodable](swift/encodable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Music Item Attributes

- [EditorialNotes](musickit/editorialnotes.md)
- [PreviewAsset](musickit/previewasset.md)
