---
title: "overlayArrangementEdge(_:)"
framework: SwiftUI
role: symbol
role_heading: Instance Method
platforms: [iOS 27.1+, iPadOS 27.1+]
path: "swiftui/view/overlayarrangementedge(_:)"
---

# overlayArrangementEdge(_:)

The horizontal edge a view in an overlay arrangement occupies when the arrangement transitions to a horizontal layout.

## Declaration

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

```

## Parameters

- `edge`: The horizontal edge to position the view at.

## Discussion

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

## See Also

### Dynamically arranging a primary and secondary view

- [ArrangementView](swiftui/arrangementview.md)
- [arrangementViewStyle(_:)](swiftui/view/arrangementviewstyle(_:).md)
- [ArrangementViewStyle](swiftui/arrangementviewstyle.md)
- [splitArrangementFixedLayoutSize(horizontal:vertical:)](swiftui/view/splitarrangementfixedlayoutsize(horizontal:vertical:).md)
- [splitArrangementLayoutRatio(_:)](swiftui/view/splitarrangementlayoutratio(_:).md)
- [splitArrangementLayoutRatio(minHorizontal:idealHorizontal:maxHorizontal:minVertical:idealVertical:maxVertical:)](swiftui/view/splitarrangementlayoutratio(minhorizontal:idealhorizontal:maxhorizontal:minvertical:idealvertical:maxvertical:).md)
- [splitArrangementLayoutSize(minWidth:idealWidth:maxWidth:minHeight:idealHeight:maxHeight:)](swiftui/view/splitarrangementlayoutsize(minwidth:idealwidth:maxwidth:minheight:idealheight:maxheight:).md)
