---
title: pixelAspectRatio
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uiscreenmode/pixelaspectratio
---

# pixelAspectRatio

The aspect ratio of a single pixel.

## Declaration

```swift
var pixelAspectRatio: CGFloat { get }
```

## Discussion

Discussion The aspect ratio is defined as x/y, where x is the width of the pixel and y is the height of the pixel.

## See Also

### Accessing the screen mode attributes

- [size](uikit/uiscreenmode/size.md)
