<!--
{
  "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/canBecomeFirstResponder",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:objc(cs)UIResponder(py)canBecomeFirstResponder"
  },
  "title" : "canBecomeFirstResponder"
}
-->

# canBecomeFirstResponder

Returns a Boolean value indicating whether this object can become the first responder.

```
var canBecomeFirstResponder: Bool { get }
```

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the responder can become the first responder; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

This method returns <doc://com.apple.documentation/documentation/Swift/false> by default. Subclasses must override this method and return <doc://com.apple.documentation/documentation/Swift/true> to be able to become first responder.

Don’t call this method on a view that’s not currently in the active view hierarchy. The result is undefined.

---

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)