---
title: withHorizontallyFlippedOrientation()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiimage/withhorizontallyflippedorientation()
---

# withHorizontallyFlippedOrientation()

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

## Declaration

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

## Return Value

Return Value The new UIImage object.

## Discussion

Discussion The returned image’s imageOrientation property contains the mirrored version of the original image’s orientation. For example, if the original orientation is UIImage.Orientation.left, the new orientation is UIImage.Orientation.leftMirrored. This method does not affect the value of the flipsForRightToLeftLayoutDirection property.

## See Also

### Changing the image attributes

- [withConfiguration(_:)](uikit/uiimage/withconfiguration(_:).md)
- [applyingSymbolConfiguration(_:)](uikit/uiimage/applyingsymbolconfiguration(_:).md)
- [imageFlippedForRightToLeftLayoutDirection()](uikit/uiimage/imageflippedforrighttoleftlayoutdirection().md)
- [withRenderingMode(_:)](uikit/uiimage/withrenderingmode(_:).md)
- [withAlignmentRectInsets(_:)](uikit/uiimage/withalignmentrectinsets(_:).md)
- [resizableImage(withCapInsets:)](uikit/uiimage/resizableimage(withcapinsets:).md)
- [resizableImage(withCapInsets:resizingMode:)](uikit/uiimage/resizableimage(withcapinsets:resizingmode:).md)
- [imageWithoutBaseline()](uikit/uiimage/imagewithoutbaseline().md)
- [withBaselineOffset(fromBottom:)](uikit/uiimage/withbaselineoffset(frombottom:).md)
- [UIImage.Configuration](uikit/uiimage/configuration-swift.class.md)
- [UIImage.SymbolConfiguration](uikit/uiimage/symbolconfiguration-swift.class.md)
