<!--
{
  "availability" : [
    "iOS: 27.1.0 -",
    "iPadOS: 27.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UISceneAccessory/cameraCapture(sceneConfiguration:userInfo:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UISceneAccessory(cm)cameraCaptureSceneAccessoryWithConfiguration:userInfo:"
  },
  "title" : "cameraCapture(sceneConfiguration:userInfo:)"
}
-->

# cameraCapture(sceneConfiguration:userInfo:)

Creates a scene accessory for presenting content during camera capture, passing additional context to the
scene delegate.

```
class func cameraCapture(sceneConfiguration: UISceneConfiguration, userInfo: Any) -> Self
```

## Parameters

`sceneConfiguration`

A scene configuration value with a delegate type defined for it.

`userInfo`

An object that can be used to pass additional context to the scene delegate upon connection.

## Discussion

The content may be presented while the app is in the foreground and has an active camera capture session.
The system determines whether and where to present it. The content can be interactive.

This variant accepts a `userInfo` object to pass additional context to the scene delegate upon connection.
The `userInfo` object is accessible in the corresponding scene via
`UISceneConnectionOptions.sceneAccessoryUserInfo`.

---

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)