---
title: isCameraLensSmudgeDetectionSupported
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/format/iscameralenssmudgedetectionsupported
---

# isCameraLensSmudgeDetectionSupported

Whether camera lens smudge detection is supported.

## Declaration

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

## Discussion

Discussion This property returns true if the session’s current configuration supports lens smudge detection. When switching cameras or formats, this property may change. When this property changes from true to false, isCameraLensSmudgeDetectionEnabled also reverts to false. If you opt in for lens smudge detection and then change configurations, you should set isCameraLensSmudgeDetectionEnabled to true again.
