<!--
{
  "availability" : [
    "iOS: 27.1.0 -",
    "iPadOS: 27.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/CameraCaptureAccessory",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI22CameraCaptureAccessoryV"
  },
  "title" : "CameraCaptureAccessory"
}
-->

# CameraCaptureAccessory

A scene accessory that presents content during camera capture.

```
nonisolated struct CameraCaptureAccessory<Content> where Content : View
```

## Overview

The accessory 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. Unlike [`ExternalNonInteractiveAccessory`](/documentation/SwiftUI/ExternalNonInteractiveAccessory), the content can be
interactive.

For example, you can present a teleprompter that the person being captured
can read while looking toward the camera:

```
struct CameraRootView: View {
    @State private var model = TeleprompterModel()

    var body: some View {
        CameraView(model: model)
            .sceneAccessory {
                CameraCaptureAccessory {
                    TeleprompterView(model: model)
                }
            }
    }
}
```

## Topics

### Initializers

[`init(content: () -> Content)`](/documentation/SwiftUI/CameraCaptureAccessory/init(content:))

Creates a scene accessory that presents content during camera capture.

[`init(isEnabled: Binding<Bool>, content: () -> Content)`](/documentation/SwiftUI/CameraCaptureAccessory/init(isEnabled:content:))

Creates a scene accessory that presents content during camera capture,
with a binding for programmatic enablement.

## Relationships

### Conforms To

[`SceneAccessoryContent`](/documentation/SwiftUI/SceneAccessoryContent)

---

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)