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

# resignFirstResponder()

Notifies this object that it has been asked to relinquish its status as first responder in its window.

```
func resignFirstResponder() -> Bool
```

## Discussion

The default implementation returns <doc://com.apple.documentation/documentation/Swift/true>, resigning first responder status. You can override this method in your custom responders to update your object’s state or perform other actions, such as removing the highlight from a selection. You can also return <doc://com.apple.documentation/documentation/Swift/false>, refusing to relinquish first responder status. If you override this method, you must call `super` (the superclass implementation) at some point in your code.

---

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)