---
title: isCameraLensSmudgeDetectionEnabled
framework: avfoundation
role: symbol
role_heading: Instance Property
path: avfoundation/avcapturedevice/iscameralenssmudgedetectionenabled
---

# isCameraLensSmudgeDetectionEnabled

Whether camera lens smudge detection is enabled.

## Declaration

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

## Discussion

Discussion You enable lens smudge detection by calling setCameraLensSmudgeDetectionEnabled(_:detectionInterval:). By default, this property is returns false.

## See Also

### Configuring lens smudge detection

- [setCameraLensSmudgeDetectionEnabled(_:detectionInterval:)](avfoundation/avcapturedevice/setcameralenssmudgedetectionenabled(_:detectioninterval:).md)
- [cameraLensSmudgeDetectionInterval](avfoundation/avcapturedevice/cameralenssmudgedetectioninterval.md)
- [cameraLensSmudgeDetectionStatus](avfoundation/avcapturedevice/cameralenssmudgedetectionstatus.md)
- [AVCaptureCameraLensSmudgeDetectionStatus](avfoundation/avcapturecameralenssmudgedetectionstatus.md)
