---
title: aspectRatio
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uilayoutguideaspectfitting/aspectratio
---

# aspectRatio

The content’s aspect ratio.

## Declaration

```swift
var aspectRatio: CGFloat { get set }
```

## Discussion

Discussion This property represents the ratio of the content’s width to its height. The value of this property must be greater than 0.0 and less than or equal to 100.0. The default value is 1.0.
