---
title: isEnabled
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcaptureinput/port/isenabled
---

# isEnabled

A Boolean value that indicates whether the port is in an enabled state.

## Declaration

```swift
var isEnabled: Bool { get set }
```

## Discussion

Discussion Ports are in an enabled state by default. If you want to capture only a subset of the media streams provided by a capture input, use this property to selectively disable streams.

## See Also

### Inspecting an input port

- [mediaType](avfoundation/avcaptureinput/port/mediatype.md)
- [formatDescription](avfoundation/avcaptureinput/port/formatdescription.md)
- [sourceDeviceType](avfoundation/avcaptureinput/port/sourcedevicetype.md)
- [sourceDevicePosition](avfoundation/avcaptureinput/port/sourcedeviceposition.md)
- [clock](avfoundation/avcaptureinput/port/clock.md)
