Skip to content

Instantly share code, notes, and snippets.

//To prevent the 4-5 seconds lags when you show the keyboard for the first time
import UIKit
extension UIApplication {
func cacheKeyboard()
{
let textField = UITextField()
if let window = windows.last {