<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI23LayoutDirectionBehaviorO"
  },
  "title" : "LayoutDirectionBehavior"
}
-->

# LayoutDirectionBehavior

A description of what should happen when the layout direction changes.

```
enum LayoutDirectionBehavior
```

## Overview

A `LayoutDirectionBehavior` can be used with the `layoutDirectionBehavior`
view modifier or the `layoutDirectionBehavior` property of `Shape`.

## Topics

### Getting behaviors

[`case fixed`](/documentation/SwiftUI/LayoutDirectionBehavior/fixed)

A behavior that doesn’t mirror when the layout direction changes.

[`static var mirrors: LayoutDirectionBehavior`](/documentation/SwiftUI/LayoutDirectionBehavior/mirrors)

A behavior that mirrors when the layout direction is right-to-left.

[`case mirrors(in: LayoutDirection)`](/documentation/SwiftUI/LayoutDirectionBehavior/mirrors(in:))

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

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)