Interactive previews iPhone
Swipe Container
Only allows a single active swipe within a container.
Platform Compatibility
iOS 27.0+ iPadOS 27.0+ macOS 27.0+ watchOS 27.0+ visionOS 27.0+
Tags
SwiftUI Code
VStack {
Section("Group1") {
Text("Foo1")
.swipeActions {
Button(role: .destructive, action: action)
}
Text("Bar1")
.swipeActions {
Button(role: .destructive, action: action)
}
}
.swipeActionsContainer()
Text("Foo2")
.swipeActions {
Button(role: .destructive, action: action)
}
Text("Bar2")
.swipeActions {
Button(role: .destructive, action: action)
}
}Found an issue or have a suggestion?
Created: June 18, 2026Updated: June 18, 2026
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 allInsetGroupedListStyle
The list style that describes the behavior and appearance of an inset grouped list.
Search Tab Role
On Liquid Glass, this tab is placed in its own group. In left-to-right (LTR) layouts, it will always appear on the right side of the TabView.
BorderedListStyle
The list style that describes the behavior and appearance of a list with standard border.