<!--
{
  "availability" : [
    "iOS: 7.0.0 -",
    "iPadOS: 7.0.0 -",
    "tvOS: -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIRectEdge",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@E@UIRectEdge"
  },
  "title" : "UIRectEdge"
}
-->

# UIRectEdge

Constants that specify the edges of a rectangle.

```
struct UIRectEdge
```

## Overview

You can add these constants together to specify multiple edges at the same time.

## Topics

### Edges

[`UIRectEdgeNone`](/documentation/UIKit/UIRectEdge/UIRectEdgeNone)

No edge.

[`UIRectEdgeTop`](/documentation/UIKit/UIRectEdge/top)

The top edge of the rectangle.

[`UIRectEdgeLeft`](/documentation/UIKit/UIRectEdge/left)

The left edge of the rectangle.

[`UIRectEdgeBottom`](/documentation/UIKit/UIRectEdge/bottom)

The bottom edge of the rectangle.

[`UIRectEdgeRight`](/documentation/UIKit/UIRectEdge/right)

The right edge of the rectangle.

[`UIRectEdgeAll`](/documentation/UIKit/UIRectEdge/all)

All edges of the rectangle.

### Initializers

[`init(rawValue:)`](/documentation/UIKit/UIRectEdge/init(rawValue:))

Creates an edges structure with the specified raw value.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)