<!--
{
  "availability" : [
    "iOS: 4.1.0 -",
    "iPadOS: 4.1.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImagePickerController/InfoKey/mediaMetadata",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@UIImagePickerControllerMediaMetadata"
  },
  "title" : "mediaMetadata"
}
-->

# mediaMetadata

Metadata for a newly-captured photograph.

```
static let mediaMetadata: UIImagePickerController.InfoKey
```

## Discussion

This key is valid only when using an image picker whose source type is set to [`UIImagePickerController.SourceType.camera`](/documentation/UIKit/UIImagePickerController/SourceType-swift.enum/camera), and applies only to still images.

The value for this key is an <doc://com.apple.documentation/documentation/Foundation/NSDictionary> object that contains the metadata of the photo that was just captured. To store the metadata along with the image in the Camera Roll, use the <doc://com.apple.documentation/documentation/Photos/PHAssetChangeRequest> class from the Photos framework.

---

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)