fun Modifier.onTapGesture(count: Int = 1, perform: () -> Unit): ModifierOverview
For the location of the tap, use Modifier.onTapGesture { x, y -> }.
Modifier.onTapGesture(perform = { })This is the Kotlin form of SwiftUI View.onTapGesture(count:perform:): SwiftUI documentation. In Swift it reads:
nonisolated func onTapGesture(count: Int = 1, perform action: @escaping () -> Void) -> some ViewTopics
Overloads
fun Modifier.onTapGesture(count: Int = 1, perform: () -> Unit): Modifier