---
title: imageOrientation
framework: UIKit
role: symbol
role_heading: Instance Property
platforms: [iOS 2.0+, iPadOS 2.0+, Mac Catalyst 13.1+, tvOS, visionOS 1.0+, watchOS 2.0+]
path: uikit/uiimage/1624141-imageorientation
---

# imageOrientation

The orientation of the receiver’s image.

## Declaration

```swift
var imageOrientation: UIImage.Orientation { get }
```

## Discussion

Image orientation affects the way the image data is displayed when drawn. By default, images are displayed in the “up” orientation. If the image has associated metadata (such as EXIF information), however, this property contains the orientation indicated by that metadata. For a list of possible values for this property, see [UIImage.Orientation](orientation.md).

## See Also

### Accessing image attributes

- [UIImage.Orientation](orientation.md)
- [flipsForRightToLeftLayoutDirection](flipsforrighttoleftlayoutdirection.md)
- [resizingMode](resizingmode-swift.property.md)
- [UIImage.ResizingMode](resizingmode-swift.enum.md)
- [duration](duration.md)
- [capInsets](capinsets.md)
- [alignmentRectInsets](alignmentrectinsets.md)
- [isSymbolImage](issymbolimage.md)
