UIView

extension UIView

We add a couple of ways to deal with first responders.

  • This returns the first responder, wherever it is in our hierarchy.

    Declaration

    Swift

    var currentFirstResponder: UIResponder? { get }
  • This puts away any open keyboards.

    Declaration

    Swift

    func resignAllFirstResponders()