overlayArrangementEdge
The horizontal edge a view in an overlay arrangement occupies when the arrangement transitions to a horizontal layout.
View ModifieriOS 27.1+macOS 27.1+tvOS 27.1+watchOS 27.1+visionOS 27.1+
Overloads
2 ways to call compose().overlayArrangementEdge(). Each is one SwiftUI overload, picked by the arguments you pass.
compose().overlayArrangementEdge(
edge: SwiftUI.HorizontalEdge | null
)nonisolated func overlayArrangementEdge(
_ edge: HorizontalEdge?
) -> some ViewParameters
edge*SwiftUI.HorizontalEdge | nullThe horizontal edge to position the view at.
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
More in Appearance.
- backgroundSets the view's background to a style.
- badgeGenerates a badge for the view from a localized string resource.
- badgeProminenceSpecifies the prominence of badges created by this view.
- borderAdds a border to this view with the specified style and width.
- buttonSizingThe preferred sizing behavior of buttons in the view hierarchy.
- containerBackgroundSets the container background of the enclosing container using a view.
- headerProminenceSets the header prominence for this view.
- hiddenHides this view unconditionally.
- imageScaleScales images within the view according to one of the relative sizes available including small, medium, and large images sizes.
- labelIconToTitleSpacingSet the spacing between the icon and title in labels.
- labelReservedIconWidthSet the width reserved for icons in labels.
- labelsHiddenHides the labels of any controls contained within this view.