---
title: "init(_:)"
framework: appkit
role: symbol
role_heading: Initializer
path: "appkit/nshorizontaldirection/set/init(_:)"
---

# init(_:)

Creates a set of horizontal directions containing only the specified direction.

## Declaration

```swift
init(_ direction: NSHorizontalDirection)
```
