<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI14HorizontalEdgeO"
  },
  "title" : "HorizontalEdge"
}
-->

# HorizontalEdge

An edge on the horizontal axis.

```
@frozen enum HorizontalEdge
```

## Overview

Use a horizontal edge for tasks like setting a swipe action with the
[`swipeActions(edge:allowsFullSwipe:content:)`](/documentation/SwiftUI/View/swipeActions(edge:allowsFullSwipe:content:))
view modifier. The positions of the leading and trailing edges
depend on the locale chosen by the user.

## Topics

### Getting the edges

[`HorizontalEdge.leading`](/documentation/SwiftUI/HorizontalEdge/leading)

The leading edge.

[`HorizontalEdge.trailing`](/documentation/SwiftUI/HorizontalEdge/trailing)

The trailing edge.

### Accessing sets of edges

[`Set`](/documentation/SwiftUI/HorizontalEdge/Set)

An efficient set of horizontal edges.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

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

---

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)