<!--
{
  "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.



---

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)