<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/HorizontalEdge/Set",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI14HorizontalEdgeO3SetV"
  },
  "title" : "HorizontalEdge.Set"
}
-->

# HorizontalEdge.Set

An efficient set of horizontal edges.

```
@frozen struct Set
```

## Topics

### Getting edge sets

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

A set containing the leading and trailing horizontal edges.

[`static let leading: HorizontalEdge.Set`](/documentation/SwiftUI/HorizontalEdge/Set/leading)

A set containing only the leading horizontal edge.

[`static let trailing: HorizontalEdge.Set`](/documentation/SwiftUI/HorizontalEdge/Set/trailing)

A set containing only the trailing horizontal edge.

### Creating an edge set

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

Creates a set of edges containing only the specified horizontal edge.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

---

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)