Contents

pressesEnded(_:with:)

Tells the object when a button is released.

Declaration

func pressesEnded(_ presses: Set<UIPress>, with event: UIPressesEvent?)

Parameters

  • presses:

    A set of Uipress instances that represent the buttons that the user is no longer pressing. The phase of each press is set to Ended.

  • event:

    The event to which the presses belong.

Mentioned in

Discussion

UIKit calls this method when the user stops pressing one or more buttons. Use this method to take any needed actions in response to the end of the press.The default implementation of this method forwards the message up the responder chain. When creating your own subclasses, call super to forward any events that you don’t handle yourself.

See Also

Responding to press events