VisionOS background materials
All background materials on visionOS
Platform Compatibility
Tags
SwiftUI Code
HStack {
smallRect
.background(.ultraThinMaterial)
smallRect
// GroupBox background
.background(.thinMaterial)
smallRect
// List and sidebar background
.background(.regularMaterial)
smallRect
// searchable background
.background(.thickMaterial)
smallRect
.background(.ultraThickMaterial)
}Found an issue or have a suggestion?
More View Components
View allToolbar 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.
Music Picker
Presents a music picker to select items from the Apple Music catalog and the user’s music library.
Explore Other Components
Browse allContent Unavailable Search Text
A pre-built placeholder for empty search results with search text
Split Arrangement Layout Ratio
Sets the preferred size ratio for an arrangement view in a split style. Use this modifier when you want to customize the size of the view compared to its other views in the split layout.
AccessoryLinearCapacityGaugeStyle
A gauge style that displays bar that fills from leading to trailing edges as the gauge’s current value increases
AccessoryCircularGaugeStyle
A gauge style that displays an open ring with a marker that appears at a point along the ring to indicate the gauge’s current value
Reserved Regions
Returns the reserved regions for the given kind. A reserved region indicates that an area within a view’s coordinate space has been claimed by something the view does not own