Last active
July 10, 2024 23:44
-
-
Save christianselig/f8f63cfc893e8926c1829379f1d1ca94 to your computer and use it in GitHub Desktop.
How to accomplish a long-pressable button in SwiftUI with two different techniques. The first just uses SwiftUI but due to the simultaneous gesture requirement you also have to ensure both don't fire concurrently. The second uses UIKit and wraps UIButton and UILongPressGestureRecognizer which natively handles this behavior.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
kewl 👍