---
title: "init(alignments:)"
framework: arkit
role: symbol
role_heading: Initializer
path: "arkit/planedetectionprovider/init(alignments:)"
---

# init(alignments:)

Creates a plane detection provider for the types of planes you want to detect.

## Declaration

```swift
init(alignments: [PlaneAnchor.Alignment] = [.horizontal, .vertical])
```

## Parameters

- `alignments`: The types of planes you want to detect — horizontal, vertical, or both.

## See Also

### Detecting planes

- [allAnchors](arkit/planedetectionprovider/allanchors.md)
- [anchorUpdates](arkit/planedetectionprovider/anchorupdates.md)
- [requiredAuthorizations](arkit/planedetectionprovider/requiredauthorizations.md)
- [isSupported](arkit/planedetectionprovider/issupported.md)
