Returns a Boolean value indicating whether this object is the first responder.
SDKs
- iOS 10.0+
- tvOS 10.0+
Framework
- UIKit
Declaration
var isFirstResponder: Bool { get }
Return Value
true
if the receiver is the first responder or false
if it is not.
Discussion
UIKit dispatches some types of events, such as motion events, to the first responder initially.