Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

swipeActions(_:)

A view modifier that maps SwiftUI's swipeActions.

iOS 17.0+macOS 14.0+tvOS: unavailable (no-op)watchOS 10.0+
fun Modifier.swipeActions(edge: HorizontalEdge = HorizontalEdge.trailing, allowsFullSwipe: Boolean = true, content: @Composable () -> Unit): Modifier

Overview

Modifier.swipeActions()

This is the Kotlin form of SwiftUI View.swipeActions(edge:allowsFullSwipe:content:): SwiftUI documentation. In Swift it reads:

nonisolated func swipeActions<T>(edge: HorizontalEdge = .trailing, allowsFullSwipe: Bool = true, @ContentBuilder content: () -> T) -> some View where T : View

Topics

Overloads

fun Modifier.swipeActions(edge: HorizontalEdge = HorizontalEdge.trailing, allowsFullSwipe: Boolean = true, content: @Composable () -> Unit): Modifier
SwiftUI View.swipeActions(edge:allowsFullSwipe:content:)
fun Modifier.swipeActions(edge: HorizontalEdge = HorizontalEdge.trailing, allowsFullSwipe: Boolean = true, content: @Composable () -> Unit, onPresentationChanged: (Boolean) -> Unit): Modifier
SwiftUI View.swipeActions(edge:allowsFullSwipe:content:onPresentationChanged:) · iOS 27.0+, macOS 27.0+, tvOS: unavailable (no-op), watchOS 27.0+