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

# MLMediaLoadIncludeSourcesKey

Defines which media sources to include when loading. If not present, load all available media sources. This option is processed after [`MLMediaLoadSourceTypesKey`](/documentation/MediaLibrary/MLMediaLoadSourceTypesKey). If [`MLMediaLoadIncludeSourcesKey`](/documentation/MediaLibrary/MLMediaLoadIncludeSourcesKey) is present but [`MLMediaLoadSourceTypesKey`](/documentation/MediaLibrary/MLMediaLoadSourceTypesKey) is not, then only those sources specified here will be loaded. This is useful for loading a single media source. When both keys are present, this is useful for adding one or more media sources that normally would not appear for the requested library type. 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 MLMediaLoadIncludeSourcesKey: 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)