I have referred to countless other questions about a press-and-hold button but there aren\'t many related to Swift. I have one function connected to a button using the touch
You can use Timer
follow this example on github
https://github.com/sadeghgoo/RunCodeWhenUIbuttonIsHeld