overlayArrangementEdge(_:)
The horizontal edge a view in an overlay arrangement aligns to when the arrangement transitions to a landscape orientation.
Declaration
nonisolated func overlayArrangementEdge(_ edge: HorizontalEdge?) -> some View
Parameters
- edge:
The horizontal edge against which the arrangement aligns the view.
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()
}
}