<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -",
    "watchOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Edge/Corner/Set",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4EdgeO6CornerO3SetV"
  },
  "title" : "Edge.Corner.Set"
}
-->

# Edge.Corner.Set

An efficient set of corners.

```
struct Set
```

## Topics

### Initializers

[`init(Edge.Corner)`](/documentation/SwiftUI/Edge/Corner/Set/init(_:))

Creates set of corners containing only the specified corner.

[`init(rawValue: Int8)`](/documentation/SwiftUI/Edge/Corner/Set/init(rawValue:))

Creates a corner set given a raw value.

### Instance Methods

[`func contains(Edge.Corner) -> Bool`](/documentation/SwiftUI/Edge/Corner/Set/contains(_:))

Returns true only if `corner` is a member of the calling set.

### Type Properties

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

All corners.

[`static let bottom: Edge.Corner.Set`](/documentation/SwiftUI/Edge/Corner/Set/bottom)

The bottom leading and trailing corners.

[`static let bottomLeading: Edge.Corner.Set`](/documentation/SwiftUI/Edge/Corner/Set/bottomLeading)

The bottom leading corner.

[`static let bottomTrailing: Edge.Corner.Set`](/documentation/SwiftUI/Edge/Corner/Set/bottomTrailing)

The bottom trailing corner.

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

The top and bottom leading corners.

[`static let none: Edge.Corner.Set`](/documentation/SwiftUI/Edge/Corner/Set/none)

No corners.

[`static let top: Edge.Corner.Set`](/documentation/SwiftUI/Edge/Corner/Set/top)

The top leading and trailing corners.

[`static let topLeading: Edge.Corner.Set`](/documentation/SwiftUI/Edge/Corner/Set/topLeading)

The top leading corner.

[`static let topTrailing: Edge.Corner.Set`](/documentation/SwiftUI/Edge/Corner/Set/topTrailing)

The top trailing corner.

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

The top and bottom trailing corners.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

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

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

[`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)