---
title: "overlayArrangementEdge(_:)"
framework: SwiftUI
role: symbol
role_heading: Instance Method
platforms: [iOS 27.1+, iPadOS 27.1+, Mac Catalyst 27.1+, macOS 27.1+, tvOS 27.1+, visionOS 27.1+, watchOS 27.1+]
path: "swiftui/view/overlayarrangementedge(_:)-8slwf"
---

# overlayArrangementEdge(_:)

The horizontal edge a view in an overlay arrangement aligns to when the arrangement transitions to a landscape orientation.

## Declaration

```swift
nonisolated func overlayArrangementEdge(_ edge: HorizontalEdge?) -> some View

```

## Parameters

- `edge`: The horizontal edge against which the arrangement aligns the view.

## Discussion

Discussion Use this modifier to anchor the given view when its overlay layout transitions into a landscape orientation. For example, to move the view to the trailing side of the arrangement view, use the HorizontalEdge.trailing edge. var body: some View {     ArrangementView {         ControlsView()             .overlayArrangementEdge(.trailing)     } secondary: {         ContentView()     } }
