What is long press Iphone?
Long-press (also known as press-and-hold) gestures detect one or more fingers (or a stylus) touching the screen for an extended period of time. You configure the minimum duration required to recognize the press and the number of times the fingers must be touching the screen.
How do I use long press gesture recognizer in Swift?
for the normal tap you can simply create a touch up inside action from your button. for the long press, create an outlet for your button, create the tap gesture recognizer and set it to the button then create the selector method to perform the long press tasks.