---
title: contentSource
framework: avkit
role: symbol
role_heading: Instance Property
path: avkit/avpictureinpicturecontroller/contentsource-swift.property
---

# contentSource

The source of the controller’s content.

## Declaration

```swift
var contentSource: AVPictureInPictureController.ContentSource? { get set }
```

## Discussion

Discussion You can change a content source while a Picture in Picture session is active, but only if the new content source is ready for display. If it isn’t ready, the session ends immediately. If your app uses AVPlayerLayer, verify that the value of its isReadyForDisplay property is true before setting it as a content source.

## See Also

### Configuring the Content Source

- [AVPictureInPictureController.ContentSource](avkit/avpictureinpicturecontroller/contentsource-swift.class.md)
