LayoutDirectionBehavior

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

EnumerationiOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+LayoutDirectionBehavior in SwiftUI

Declaration

React
type LayoutDirectionBehavior =
  | 'fixed'
  | 'mirrors'
  | { mirrors: { in: LayoutDirection; }; };
Swift
enum LayoutDirectionBehavior

Pass a literal, or build one with SwiftUI.LayoutDirectionBehavior from import { SwiftUI } from 'swiftui-react-native'.

Type properties

Type methods

Overview

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

From Apple’s SwiftUI documentation. Code samples there are Swift.

Used by

See also

More in Layout.