<!--
{
  "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/Shape/layoutDirectionBehavior",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI5ShapeP23layoutDirectionBehaviorAA06LayouteF0Ovp"
  },
  "title" : "layoutDirectionBehavior"
}
-->

# layoutDirectionBehavior

Returns the behavior this shape should use for different layout
directions.

```
nonisolated var layoutDirectionBehavior: LayoutDirectionBehavior { get }
```

## Discussion

If the layoutDirectionBehavior for a Shape is one that mirrors, the
shape’s path will be mirrored horizontally when in the specified layout
direction. When mirrored, the individual points of the path will be
transformed.

Defaults to `.mirrors` when deploying on iOS 17.0, macOS 14.0,
tvOS 17.0, watchOS 10.0 and later, and to `.fixed` if not.
To mirror a path when deploying to earlier releases, either use
`View.flipsForRightToLeftLayoutDirection` for a filled or stroked
shape or conditionally mirror the points in the path of the shape.

---

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)