<!--
{
  "availability" : [
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ARKit",
  "identifier" : "/documentation/ARKit/PlaneDetectionProvider/init(alignments:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "ARKit"
    ],
    "preciseIdentifier" : "s:5ARKit22PlaneDetectionProviderC10alignmentsACSayAA0B6AnchorV9AlignmentOG_tcfc"
  },
  "title" : "init(alignments:)"
}
-->

# init(alignments:)

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

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

## Parameters

`alignments`

The types of planes you want to detect — horizontal, vertical, or both.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)