Compose SwiftUIv0.4.0
esc
GuideAPIGitHub
View modifier

buttonRepeatBehavior(_:)

A view modifier that maps SwiftUI's buttonRepeatBehavior.

iOS 17.0+macOS 14.0+tvOS 17.0+watchOS 10.0+
fun Modifier.buttonRepeatBehavior(behavior: ButtonRepeatBehavior): Modifier

Overview

Modifier.buttonRepeatBehavior(behavior = ButtonRepeatBehavior.…)

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

nonisolated func buttonRepeatBehavior(_ behavior: ButtonRepeatBehavior) -> some View

Topics

Overloads

fun Modifier.buttonRepeatBehavior(behavior: ButtonRepeatBehavior): Modifier
SwiftUI View.buttonRepeatBehavior(_:)