When I implement UITextFieldDelegate through RxSwift, I do this:
self.textField_AddressType.rx.controlEvent(.editingDidBegin).subscribe { _ in
// Code here...
}.disposed(by: self.disposeBag)
But when I apply it to UITextView,
self.textView.rx.controlEvent(.editingDidBegin).subscribe { _ in
// Code here...
}.disposed(by: self.disposeBag)
I get an error:
'UITextView' is not a subtype of 'UIControl'
I couldn't find anything about this issue, is there another way to implement UITextViewDelegate in RxSwift?