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

# session

The view’s associated capture session.

```
var session: AVCaptureSession? { get }
```

## Discussion

This property’s default value is a capture session configured for movie file recordings of audio and video data. Use the [`setSession(_:showVideoPreview:showAudioPreview:)`](/documentation/AVKit/AVCaptureView/setSession(_:showVideoPreview:showAudioPreview:)) method to provide a custom capture session. Modifying the capture session changes its visual representation in the view.

---

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)