---
title: "cameraCapture(sceneConfiguration:userInfo:)"
framework: UIKit
role: symbol
role_heading: Type Method
platforms: [iOS 27.1+, iPadOS 27.1+]
path: "uikit/uisceneaccessory/cameracapture(sceneconfiguration:userinfo:)"
---

# cameraCapture(sceneConfiguration:userInfo:)

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

## Declaration

```swift
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

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.

## See Also

### Creating a camera capture accessory

- [cameraCapture(sceneConfiguration:)](uikit/uisceneaccessory/cameracapture(sceneconfiguration:).md)
