Supporting Both Tap and Long Press on a Button in SwiftUI
Read OriginalThis 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.
Comments
No comments yet
Be the first to share your thoughts!
Browser Extension
Get instant access to AllDevBlogs from your browser