This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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 { |