---
title: UIRectEdge
framework: uikit
role: symbol
role_heading: Structure
path: uikit/uirectedge
---

# UIRectEdge

Constants that specify the edges of a rectangle.

## Declaration

```swift
struct UIRectEdge
```

## Overview

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

## Topics

### Edges

- [top](uikit/uirectedge/top.md)
- [left](uikit/uirectedge/left.md)
- [bottom](uikit/uirectedge/bottom.md)
- [right](uikit/uirectedge/right.md)
- [all](uikit/uirectedge/all.md)

### Initializers

- [init(rawValue:)](uikit/uirectedge/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Specifying the starting edges

- [edges](uikit/uiscreenedgepangesturerecognizer/edges.md)
