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

# imageFlippedForRightToLeftLayoutDirection()

Returns a new version of the current image that flips horizontally when it’s in a right-to-left layout.

```
func imageFlippedForRightToLeftLayoutDirection() -> UIImage
```

## Return Value

The current image, prepared to flip horizontally if it’s in a right-to-left layout.

## Discussion

Use this method to specify an image that should flip in a right-to-left layout. Note that most images do not need to flip in a right-to-left layout.

This method returns the current [`UIImage`](/documentation/UIKit/UIImage) object with the [`flipsForRightToLeftLayoutDirection`](/documentation/UIKit/UIImage/flipsForRightToLeftLayoutDirection) property set to <doc://com.apple.documentation/documentation/Swift/true>; it does *not* return a flipped image. When the returned image is displayed in a [`UIImageView`](/documentation/UIKit/UIImageView) object in a right-to-left layout direction (whether the layout direction is set by the system language, or because the image view’s [`semanticContentAttribute`](/documentation/UIKit/UIView/semanticContentAttribute) property is set to [`UISemanticContentAttribute.forceRightToLeft`](/documentation/UIKit/UISemanticContentAttribute/forceRightToLeft)), the image appears flipped. When the returned image is displayed in a left-to-right context, it appears unflipped.

---

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)