Xcode – How to endEditing on UIViewRepresentable in SwiftUI?
I have a first responder textField but I want to be able to close the keyboard when the screen is tapped or when the user presses a button. Here is my UIViewRepresentable: public struct CustomSTPPaymentCardTextField: UIViewRepresentable { @Binding var paymentMethodParams:…