<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UILayoutGuideAspectFitting",
  "metadataVersion" : "0.1.0",
  "role" : "Protocol",
  "symbol" : {
    "kind" : "Protocol",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(pl)UILayoutGuideAspectFitting"
  },
  "title" : "UILayoutGuideAspectFitting"
}
-->

# UILayoutGuideAspectFitting

The interface for a layout guide that supports a particular aspect ratio.

```
protocol UILayoutGuideAspectFitting : NSObjectProtocol
```

## Overview

The [`safeAreaAspectFitLayoutGuide`](/documentation/UIKit/UIWindow/safeAreaAspectFitLayoutGuide) property adopts this protocol to provide a layout guide for placing media content of a particular aspect ratio.

## Topics

### Specifying the aspect ratio

[`var aspectRatio: CGFloat`](/documentation/UIKit/UILayoutGuideAspectFitting/aspectRatio)

The content’s aspect ratio.

## Relationships

### Inherits From

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

---

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)