---
title: planeDetection
framework: arkit
role: symbol
role_heading: Instance Property
path: arkit/argeotrackingconfiguration/planedetection
---

# planeDetection

A value that specifies whether and how the session automatically attempts to detect flat surfaces in the camera-captured image.

## Declaration

```swift
var planeDetection: ARWorldTrackingConfiguration.PlaneDetection { get set }
```

## Discussion

Discussion By default, this configuration disables plane detection. If you enable horizontal or vertical plane detection, the session adds ARPlaneAnchor objects and notifies your ARSessionDelegate, ARSCNViewDelegate, or ARSKViewDelegate object when its analysis of captured video images detects an area that appears to be a flat surface.

## See Also

### Tracking surfaces

- [ARWorldTrackingConfiguration.PlaneDetection](arkit/arworldtrackingconfiguration/planedetection-swift.struct.md)
