Swift UI - tap vs. long tap on a text element or shape element

Welcome to the community @peter_luger !! Use

.onLongPressGesture(minimumDuration: numHere) {
}

Here’s a similar question beware that the order of the modifiers matters!

2 Likes