---
title: init()
framework: avfoundation
role: symbol
role_heading: Initializer
path: avfoundation/avcapturescreeninput/init()
---

# init()

Initializes a capture screen input that provides media data from the main screen.

## Declaration

```swift
init()
```

## Discussion

Discussion Using this initializer is equivalent to calling init(displayID:) with the result of the CGMainDisplayID() function.

## See Also

### Initializing a capture screen input

- [init(displayID:)](avfoundation/avcapturescreeninput/init(displayid:).md)
