<!--
{
  "availability" : [
    "macCatalyst: 13.0.0 -",
    "macOS: 10.9.0 - 10.15.0"
  ],
  "documentType" : "symbol",
  "framework" : "MediaLibrary",
  "identifier" : "/documentation/MediaLibrary/MLMediaLoadExcludeSourcesKey",
  "metadataVersion" : "0.1.0",
  "role" : "Global Variable",
  "symbol" : {
    "kind" : "Global Variable",
    "modules" : [
      "Media Library"
    ],
    "preciseIdentifier" : "c:@MLMediaLoadExcludeSourcesKey"
  },
  "title" : "MLMediaLoadExcludeSourcesKey"
}
-->

# MLMediaLoadExcludeSourcesKey

Defines which media sources to exclude when loading. This option is processed after [`MLMediaLoadIncludeSourcesKey`](/documentation/MediaLibrary/MLMediaLoadIncludeSourcesKey). The value for this key is an array of strings (media source identifiers). For a list of valid media source identifiers, see [Media Source Identifiers](/documentation/MediaLibrary/media-source-identifiers).

```
let MLMediaLoadExcludeSourcesKey: String
```

---

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)