<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/VerticalDirection/Set",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI17VerticalDirectionO3SetV"
  },
  "title" : "VerticalDirection.Set"
}
-->

# VerticalDirection.Set

An efficient set of vertical directions.

```
@frozen struct Set
```

## Topics

### Initializers

[`init(VerticalDirection)`](/documentation/SwiftUI/VerticalDirection/Set/init(_:))

Creates a set of directions containing only the specified direction.

### Type Properties

[`static let all: VerticalDirection.Set`](/documentation/SwiftUI/VerticalDirection/Set/all)

A set containing the upward and downward vertical directions.

[`static let down: VerticalDirection.Set`](/documentation/SwiftUI/VerticalDirection/Set/down)

A set containing only the downward vertical direction.

[`static let up: VerticalDirection.Set`](/documentation/SwiftUI/VerticalDirection/Set/up)

A set containing only the upward vertical direction.

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

[`OptionSet`](/documentation/Swift/OptionSet)

[`Copyable`](/documentation/Swift/Copyable)

[`Sendable`](/documentation/Swift/Sendable)

[`SetAlgebra`](/documentation/Swift/SetAlgebra)

[`ExpressibleByArrayLiteral`](/documentation/Swift/ExpressibleByArrayLiteral)

---

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)