swift ios keyboard extension - long press / press and hold
I need to know how to add long press (press and hold) function to ios custom keyboard extension so that i con show multiple keys to chose one from. expected design my project structure current code for keypress action - code can add the title of the button pressed as a new text into any proxy text field. @IBAction func keypress(sender: UIButton!){ let typedCharacter = sender.titleLabel?.text let proxy = textDocumentProxy as UITextDocumentProxy proxy.insertText(typedCharacter!) } func loadKeyboard(){ let keyboardNib = UINib(nibName: "View", bundle: nil) keyboardView = keyboardNib