# SwiftUIメモ. キーボードを隠す

extension UIApplication {
    func endEditing() {
        sendAction(
            #selector(UIResponder.resignFirstResponder),
            to: nil, from: nil, for:nil
        )
    }
}

これを

  • 背景の .onTapGesture { .. }

    [ 📩 ご意見 ]