<!--
{
  "availability" : [
    "iOS: 13.0.0 -",
    "iPadOS: 13.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.15.0 -",
    "tvOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 6.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Image/Orientation",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5ImageV11OrientationO"
  },
  "title" : "Image.Orientation"
}
-->

# Image.Orientation

The orientation of an image.

```
@frozen enum Orientation
```

## Overview

Many image formats such as JPEG include orientation metadata in the
image data. In other cases, you can specify image orientation
in code. Properly specifying orientation is often important both for
displaying the image and for certain kinds of image processing.

In SwiftUI, you provide an orientation value when initializing an
[`Image`](/documentation/SwiftUI/Image) from an existing
<doc://com.apple.documentation/documentation/CoreGraphics/CGImage>.

## Topics

### Getting image orientations

[`Image.Orientation.up`](/documentation/SwiftUI/Image/Orientation/up)

A value that indicates the original pixel data matches the image’s
intended display orientation.

[`Image.Orientation.down`](/documentation/SwiftUI/Image/Orientation/down)

A value that indicates a 180° rotation of the image from the
orientation of its original pixel data.

[`Image.Orientation.left`](/documentation/SwiftUI/Image/Orientation/left)

A value that indicates a 90° counterclockwise rotation from the
orientation of its original pixel data.

[`Image.Orientation.right`](/documentation/SwiftUI/Image/Orientation/right)

A value that indicates a 90° clockwise rotation of the image from
the orientation of its original pixel data.

### Getting mirrored image orientation

[`Image.Orientation.upMirrored`](/documentation/SwiftUI/Image/Orientation/upMirrored)

A value that indicates a horizontal flip of the image from the
orientation of its original pixel data.

[`Image.Orientation.downMirrored`](/documentation/SwiftUI/Image/Orientation/downMirrored)

A value that indicates a vertical flip of the image from the
orientation of its original pixel data.

[`Image.Orientation.leftMirrored`](/documentation/SwiftUI/Image/Orientation/leftMirrored)

A value that indicates a 90° clockwise rotation and horizontal
flip of the image from the orientation of its original pixel
data.

[`Image.Orientation.rightMirrored`](/documentation/SwiftUI/Image/Orientation/rightMirrored)

A value that indicates a 90° counterclockwise rotation and
horizontal flip from the orientation of its original pixel data.



---

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)