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 allGlass Button Styles
A button style that applies glass border artwork based on the button’s context
Pinned Toolbar Item Placement
A placement that pins the item to the trailing edge of the toolbar.
Default Collapsed Tab Section
Sets the default expansion state for the section containing this tab to collapsed when displayed in the sidebar.
MenuPickerStyle
A picker style that presents the options as a menu when the user presses a button, or as a submenu when nested within a larger menu.