<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -"
  ],
  "documentType" : "symbol",
  "framework" : "ManagedSettings",
  "identifier" : "/documentation/ManagedSettings/MediaSettings",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Managed Settings"
    ],
    "preciseIdentifier" : "s:15ManagedSettings05MediaB0V"
  },
  "title" : "MediaSettings"
}
-->

# MediaSettings

Constraints on the media content the user can access.

```
struct MediaSettings
```

## Topics

### Limiting movie and TV show ratings

[`var maximumMovieRating: Int?`](/documentation/ManagedSettings/MediaSettings/maximumMovieRating-swift.property)

The maximum movie rating the user may view.

[`var maximumTVShowRating: Int?`](/documentation/ManagedSettings/MediaSettings/maximumTVShowRating-swift.property)

The maximum TV show rating that the user may view.

[`static let maximumMovieRating: BoundedSettingMetadata<Int>`](/documentation/ManagedSettings/MediaSettings/maximumMovieRating-swift.type.property)

The metadata for the setting that controls the maximum movie rating.

[`static let maximumTVShowRating: BoundedSettingMetadata<Int>`](/documentation/ManagedSettings/MediaSettings/maximumTVShowRating-swift.type.property)

The metadata for the setting that controls the maximum TV show rating.

### Denying explicit media

[`var denyExplicitContent: Bool?`](/documentation/ManagedSettings/MediaSettings/denyExplicitContent-swift.property)

A Boolean value that indicates whether to prevent the user from accessing explicit content.

[`static let denyExplicitContent: SettingMetadata<Bool>`](/documentation/ManagedSettings/MediaSettings/denyExplicitContent-swift.type.property)

The metadata for the setting that denies explicit content.

### Denying the Apple Music Service

[`var denyMusicService: Bool?`](/documentation/ManagedSettings/MediaSettings/denyMusicService-swift.property)

A Boolean value that indicates whether to prevent the user from accessing Apple Music’s streaming content.

[`static let denyMusicService: SettingMetadata<Bool>`](/documentation/ManagedSettings/MediaSettings/denyMusicService-swift.type.property)

The metadata associated with denying access to Apple Music.

### Constraining content in the Books app

[`var denyBookstoreErotica: Bool?`](/documentation/ManagedSettings/MediaSettings/denyBookstoreErotica-swift.property)

A Boolean value that indicates whether to deny media categorized as erotica in the Books store.

[`static let denyBookstoreErotica: SettingMetadata<Bool>`](/documentation/ManagedSettings/MediaSettings/denyBookstoreErotica-swift.type.property)

The metadata associated with the setting that denies access to content in the Books store categorized as erotica.

## Relationships

### Conforms To

[`ManagedSettingsGroup`](/documentation/ManagedSettings/ManagedSettingsGroup)

---

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)