In my class I have 11 UITapGestureRecognizers in an array textViewRecognizer attached to 11 out of 100 UITextFields in an array boxArray. When a Textfield is tapped containing a
I would add a Tag to my UITextView and set the UITextViewDelegate to my ViewController.
Tag
UITextView
UITextViewDelegate
ViewController
Then I would add the following Delegate method:
func textViewShouldBeginEditing(_ textView: UITextView) -> Bool { print("Textview tag: ", textView.tag) return false }