imageFlippedForRightToLeftLayoutDirection()
Returns a new version of the current image that flips horizontally when it’s in a right-to-left layout.
Declaration
func imageFlippedForRightToLeftLayoutDirection() -> UIImageReturn 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 object with the flipsForRightToLeftLayoutDirection property set to true; it does not return a flipped image. When the returned image is displayed in a 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 property is set to UISemanticContentAttribute.forceRightToLeft), the image appears flipped. When the returned image is displayed in a left-to-right context, it appears unflipped.
See Also
Changing the image attributes
withConfiguration(_:)applyingSymbolConfiguration(_:)withHorizontallyFlippedOrientation()withRenderingMode(_:)withAlignmentRectInsets(_:)resizableImage(withCapInsets:)resizableImage(withCapInsets:resizingMode:)imageWithoutBaseline()withBaselineOffset(fromBottom:)UIImage.ConfigurationUIImage.SymbolConfiguration