ArrangementView

A view that arranges primary and secondary content using an adaptive layout that responds to the environment.

ComponentiOS 27.1+macOS 27.1+tvOS 27.1+visionOS 27.1+watchOS 27.1+ArrangementView in SwiftUI

Declaration

React
import { ArrangementView } from 'swiftui-react-native';
Swift
nonisolated struct ArrangementView<Primary, Secondary> where Primary : View, Secondary : View

Initializers

One SwiftUI initializer backs <ArrangementView>.

React
<ArrangementView
  primary?: ReactNode
  secondary?: ReactNode
/>
Swift
nonisolated init(
    @ContentBuilder primary: () -> Primary,
    @ContentBuilder secondary: () -> Secondary
)
  • primaryReactNode

    The view to display as the primary content in the arrangement.

  • secondaryReactNode

    The view to display as the secondary content in the arrangement.

Also takes the common view props: modifiers, style and testID.

Relationships

Conforms to

  • View

See also

More in Views.