During the following 0.5 second delay, the tableViewManager might be deallocated. I want to ensure that the textView is weak when interacting with it inside the nested closure. How would I go about this?
tableViewManager.textViewDidBeginEditing = { [weak self] textView, indexPath in
asyncAfter(seconds: 0.5) {
let value = textView.tag // touched here
self?.tableView.scrollToRow(at: indexPath, at: .top, animated: true)
}
}
Edit: Please stop supplying answers about how to make self weak. This question is not asking about 'self'. The textView. The teeeeexttt viiieeewww.