<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIImage/withHorizontallyFlippedOrientation()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIImage(im)imageWithHorizontallyFlippedOrientation"
  },
  "title" : "withHorizontallyFlippedOrientation()"
}
-->

# withHorizontallyFlippedOrientation()

Returns a new version of the image that’s a mirror of the original image.

```
func withHorizontallyFlippedOrientation() -> UIImage
```

## Return Value

The new [`UIImage`](/documentation/UIKit/UIImage) object.

## Discussion

The returned image’s [`imageOrientation`](/documentation/UIKit/UIImage/imageOrientation) property contains the mirrored version of the original image’s orientation. For example, if the original orientation is [`UIImage.Orientation.left`](/documentation/UIKit/UIImage/Orientation/left), the new orientation is [`UIImage.Orientation.leftMirrored`](/documentation/UIKit/UIImage/Orientation/leftMirrored). This method does not affect the value of the [`flipsForRightToLeftLayoutDirection`](/documentation/UIKit/UIImage/flipsForRightToLeftLayoutDirection) property.

---

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)