How would I force a long press gesture using UILongPressGestureRecognizer to go to the ended state using code?

How would I force a long press gesture using UILongPressGestureRecognizer to go to the ended state using code?