---
title: "init(isEnabled:content:)"
framework: SwiftUI
role: symbol
role_heading: Initializer
platforms: [iOS 27.1+, iPadOS 27.1+]
path: "swiftui/cameracaptureaccessory/init(isenabled:content:)"
---

# init(isEnabled:content:)

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

## Declaration

```swift
nonisolated init(isEnabled: Binding<Bool>, @ContentBuilder content: @escaping () -> Content)
```

## Parameters

- `isEnabled`: A binding for whether or not the accessory should present if available.
- `content`: The scene’s content.
