Skip to content
Snippets Groups Projects
Commit f86df78f authored by jakobsbode's avatar jakobsbode
Browse files

show tableview containing contact suggestions, if a software keyboard is used aswell

parent b97fc6c7
No related branches found
No related tags found
No related merge requests found
......@@ -353,9 +353,17 @@ class SendViewController: UIViewController {
scrollview.contentOffset = CGPoint(x: 0, y: tokenField.frame.origin.y - self.topLayoutGuide.length)
tableviewBegin.constant = tokenField.frame.maxY - tokenField.frame.origin.y
if #available(iOS 11.0, *) {
if keyboardY > 0 {
tableviewHeight.constant = keyboardY - tableviewBegin.constant
} else {
tableviewHeight.constant = view.safeAreaLayoutGuide.layoutFrame.size.height - tableviewBegin.constant
}
} else {
if keyboardY > 0 {
tableviewHeight.constant = keyboardY - tableviewBegin.constant - (self.navigationController?.navigationBar.frame.maxY)!
} else {
tableviewHeight.constant = view.bounds.size.height - tableviewBegin.constant - (self.navigationController?.navigationBar.frame.maxY)!
}
}
} else if !scrollview.isScrollEnabled {
scrollview.isScrollEnabled = true
......
  • jakobsbode @jakobsbode ·
    Author Maintainer

    I meant "if no software keyboard is used"

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment