iPhone SwiftUI layouts

Explore SwiftUI APIs, components, and modifiers with interactive iPhone previews, Swift code, and Apple documentation. Compare every available orientation, appearance, and design.

View

Toolbar Vertical Edge

This value reflects the system’s preferred edge for the vertical bar in the current context, regardless of whether a vertical bar is currently visible. Use it to position custom bars or other UI relative to the system’s bar placement.

Explore Toolbar Vertical Edge on iPhone in portrait and landscape, with SwiftUI code and Apple API documentation.

@Environment(\.toolbarVerticalEdge) var toolbarVerticalEdge

var body: some View {
    Text(String(describing: toolbarVerticalEdge))
}
iOS 27.1+ iPadOS 27.1+

Every available iPhone screenshot for Toolbar Vertical Edge.

2 views