Contents

canBecomeKeyView

A Boolean value indicating whether the view can become key view.

Declaration

var canBecomeKeyView: Bool { get }

Discussion

When the value of this property is true, the view can become the key view. In order to become the key view, the view must be visible, it must be installed in a window that supports keyboard entry, and the view’s acceptsFirstResponder method must return true.

See Also

Managing the Key-View Loop