<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIGestureRecognizer/reset()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIGestureRecognizer(im)reset"
  },
  "title" : "reset()"
}
-->

# reset()

Overridden to reset internal state when a gesture recognition attempt completes.

```
func reset()
```

## Discussion

The runtime calls this method after the gesture-recognizer state has been set to [`UIGestureRecognizer.State.ended`](/documentation/UIKit/UIGestureRecognizer/State-swift.enum/ended), [`recognized`](/documentation/UIKit/UIGestureRecognizer/State-swift.enum/recognized), [`UIGestureRecognizer.State.cancelled`](/documentation/UIKit/UIGestureRecognizer/State-swift.enum/cancelled), or [`UIGestureRecognizer.State.failed`](/documentation/UIKit/UIGestureRecognizer/State-swift.enum/failed)—in other words, any of the terminal states for a gesture recognition attempt. Subclasses should reset any internal state in preparation for a new attempt at gesture recognition. After this method is called, the gesture recognizer receives no further updates for touches that have begun but haven’t ended.

## See Also

[`state`](/documentation/UIKit/UIGestureRecognizer/state-swift.property)

The current state of the gesture recognizer.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)