<!--
{
  "availability" : [
    "macOS: 10.10.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVCaptureView",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureView"
  },
  "title" : "AVCaptureView"
}
-->

# AVCaptureView

A view that displays standard user interface controls for capturing media data.

```
class AVCaptureView
```

## Topics

### Configuring the Capture Session

[`session`](/documentation/AVKit/AVCaptureView/session)

The view’s associated capture session.

[`-  setSession:showVideoPreview:showAudioPreview:`](/documentation/AVKit/AVCaptureView/setSession(_:showVideoPreview:showAudioPreview:))

Sets the view’s capture session.

### Customizing the View

[`controlsStyle`](/documentation/AVKit/AVCaptureView/controlsStyle)

The style of the capture controls presented by the view.

[`AVCaptureViewControlsStyle`](/documentation/AVKit/AVCaptureViewControlsStyle)

Constants that describe the capture view’s supported controls styles.

[`videoGravity`](/documentation/AVKit/AVCaptureView/videoGravity)

A string value that defines how the capture view displays video within its bounds.

### Configuring the Delegate

[`delegate`](/documentation/AVKit/AVCaptureView/delegate)

The capture view’s delegate object.

[`AVCaptureViewDelegate`](/documentation/AVKit/AVCaptureViewDelegate)

The protocol that defines the methods you can implement to respond to capture view events.

### Recording Media

[`fileOutput`](/documentation/AVKit/AVCaptureView/fileOutput)

The capture file output used to record media data.

## Relationships

### Conforms To

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSDraggingDestination`](/documentation/AppKit/NSDraggingDestination)

[`Equatable`](/documentation/Swift/Equatable)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`NSUserActivityRestoring`](/documentation/AppKit/NSUserActivityRestoring)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`NSUserInterfaceItemIdentification`](/documentation/AppKit/NSUserInterfaceItemIdentification)

[`NSAccessibilityProtocol`](/documentation/AppKit/NSAccessibilityProtocol)

[`NSAnimatablePropertyContainer`](/documentation/AppKit/NSAnimatablePropertyContainer)

[`NSCoding`](/documentation/Foundation/NSCoding)

[`NSStandardKeyBindingResponding`](/documentation/AppKit/NSStandardKeyBindingResponding)

[`NSTouchBarProvider`](/documentation/AppKit/NSTouchBarProvider)

[`NSAccessibilityElementProtocol`](/documentation/AppKit/NSAccessibilityElementProtocol)

[`NSAppearanceCustomization`](/documentation/AppKit/NSAppearanceCustomization)

### Inherits From

[`NSView`](/documentation/AppKit/NSView)

---

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)