Peter Steinberger 1/27/2021

Supporting Both Tap and Long Press on a Button in SwiftUI

Read Original

This technical article details the process of adding both a tap action and a long-press gesture handler to a Button in SwiftUI. It walks through several iterative solutions, highlighting issues with gesture precedence and compatibility problems specific to Mac Catalyst, ultimately discussing advanced workarounds.

Supporting Both Tap and Long Press on a Button in SwiftUI

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser