Norway


I’m using the following to detect when someone hits or enter on the . It only seems to with the built in . With , it doesn’t fire. I can’t find any documentation on this. Does anyone have any ideas?

func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, replacementText text: String) -> Bool {
    if(text == "n" || text == "r") {
        print("Works")
    }
}



Source link

LEAVE A REPLY

Please enter your comment!
Please enter your name here