<!--
{
  "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/View/flipsForRightToLeftLayoutDirection(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4ViewPAAE34flipsForRightToLeftLayoutDirectionyQrSbF"
  },
  "title" : "flipsForRightToLeftLayoutDirection(_:)"
}
-->

# flipsForRightToLeftLayoutDirection(_:)

Sets whether this view mirrors its contents horizontally when the layout
direction is right-to-left.

```
nonisolated func flipsForRightToLeftLayoutDirection(_ enabled: Bool) -> some View
```

## Parameters

`enabled`

A Boolean value that indicates whether this view
should have its content flipped horizontally when the layout
direction is right-to-left. By default, views will adjust their layouts
automatically in a right-to-left context and do not need to be mirrored.

## Return Value

A view that conditionally mirrors its contents
horizontally when the layout direction is right-to-left.

## Discussion

Use `flipsForRightToLeftLayoutDirection(_:)` when you need the system to
horizontally mirror the contents of the view when presented in
a right-to-left layout.

To override the layout direction for a specific view, use the
[`environment(_:_:)`](/documentation/SwiftUI/View/environment(_:_:)) view modifier to explicitly override
the [`layoutDirection`](/documentation/SwiftUI/EnvironmentValues/layoutDirection) environment value for
the view.

---

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)