isFirstResponder
Returns a Boolean value indicating whether this object is the first responder.
Declaration
var isFirstResponder: Bool { get }Return Value
true if the responder is the first responder; otherwise, false.
Discussion
UIKit dispatches some types of events, such as motion events, to the first responder initially.