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

# UIRectCorner

The corners of a rectangle.

```
struct UIRectCorner
```

## Overview

The specified constants reflect the corners of a rectangle that has not been modified by an affine transform and is drawn in the default coordinate system (where the origin is in the upper-left corner and positive values extend down and to the right).

## Topics

### Constants

[`UIRectCornerTopLeft`](/documentation/UIKit/UIRectCorner/topLeft)

The top-left corner of the rectangle.

[`UIRectCornerTopRight`](/documentation/UIKit/UIRectCorner/topRight)

The top-right corner of the rectangle.

[`UIRectCornerBottomLeft`](/documentation/UIKit/UIRectCorner/bottomLeft)

The bottom-left corner of the rectangle.

[`UIRectCornerBottomRight`](/documentation/UIKit/UIRectCorner/bottomRight)

The bottom-right corner of the rectangle.

[`UIRectCornerAllCorners`](/documentation/UIKit/UIRectCorner/allCorners)

All corners of the rectangle.

### Initializer

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

Creates a structure that represents the corners of a rectangle.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)