Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

refreshable(_:)

Adds pull-to-refresh to a list or scroll view.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.refreshable(action: () -> Unit): Modifier

Overview

Modifier.refreshable(action = { })

This is the Kotlin form of SwiftUI View.refreshable(action:): SwiftUI documentation. In Swift it reads:

nonisolated func refreshable(action: @escaping @Sendable () async -> Void) -> some View

Topics

Overloads

fun Modifier.refreshable(action: () -> Unit): Modifier
SwiftUI View.refreshable(action:)