---
title: isPortraitEffectActive
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/isportraiteffectactive
---

# isPortraitEffectActive

A Boolean value that indicates whether the Portrait video effect is active on a device.

## Declaration

```swift
var isPortraitEffectActive: Bool { get }
```

## Discussion

Discussion When active, the device blurs the background, simulating a shallow depth of field effect. The device also limits the values of its activeVideoMinFrameDuration and activeVideoMaxFrameDuration to the value that the device format’s videoFrameRateRangeForPortraitEffect specifies. When a capture device’s isPortraitEffectEnabled property value is true, it may also return true for this property, depending on whether it supports the feature in its current configuration. This property is key-value observable.

## See Also

### Inspecting the Portrait Effect settings

- [isPortraitEffectEnabled](avfoundation/avcapturedevice/isportraiteffectenabled.md)
