I've been checking out various tuts on how to move table view up/down with keyboard interactively when using InputAccessoryView but I didn't find any solution. Most of the solutions suggest using keyboard notifications which defeats the purpose of having InputAccessoryView for me. I started using InputAccessoryView only to avoid kb notifications as drag to dismiss keyboard interactively was difficult to implement using kb notifications.
How do we move table view up and down with InputAccessoryView? Any hint will do as I already know how to move table view up and down with kb notifications.
Storyboard setup -> https://i.stack.imgur.com/0QJyn.png
Screen recording -> https://imgur.com/a/S5Oi9VS
Snippet of relevant code
class InputAccViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
@IBOutlet weak var tableView: UITableView!
@IBOutlet weak var textView: UITextView!
@IBOutlet weak var textInputView: UIView!
// other code
override var canBecomeFirstResponder: Bool { return true }
override var inputAccessoryView:UIView {
get{
return self.textInputView
}
}
override func viewDidLoad() {
super.viewDidLoad()
textInputView.removeFromSuperview()
// other code
}
// other code tableview delegates etc...
}