One way to do this is by adding this extension to `UIView`:extension UIView {
open override func touchesBegan(_ touches: Set, with event: UIEvent?) {
super.touchesBegan(touches, with: event)
UIApplication.shared.windows
.first { $0.isKeyWindow }?
.endEditing(true)
}
}
Post
Replies
Boosts
Views
Activity
I'm experiencing the same problem now, and several times over the last couple months. It's gotten worse. Also, preview images fail to upload and it seems the only recourse is to try over an over again until it finally works. Very frustrating. C'mon Apple, you're better than this.