<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/LayoutDirectionBehavior/mirrors(in:)",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI23LayoutDirectionBehaviorO7mirrorsyAcA0cD0O_tcACmF"
  },
  "title" : "LayoutDirectionBehavior.mirrors(in:)"
}
-->

# LayoutDirectionBehavior.mirrors(in:)

A behavior that mirrors when the layout direction has the specified
value.

```
case mirrors(in: LayoutDirection)
```

## Discussion

If you develop your view or shape in an LTR context, you can use
`.mirrors(in: .rightToLeft)` (which is equivalent to `.mirrors`) to
mirror your content when the layout direction is RTL (and keep the
original version in LTR). If you developer in an RTL context, you can
use `.mirrors(in: .leftToRight)` to mirror your content when the layout
direction is LTR (and keep the original version in RTL).

---

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)