@@ -158,7 +158,7 @@ class DialogViewController: UIViewController, UpdatableGroup, UITableViewDelegat
159 messageSendView.edgesToSuperview(excluding: [.top,.bottom])
159 messageSendView.edgesToSuperview(excluding: [.top,.bottom])
161− bottomConstraint = NSLayoutConstraint(item: messageSendView, attribute: .bottom, relatedBy: .equal, toItem: view, attribute: .bottom, multiplier: 1, constant: 0)
161+ bottomConstraint = NSLayoutConstraint(item: messageSendView, attribute: .bottom, relatedBy: .equal, toItem: self.view.safeAreaLayoutGuide, attribute: .bottom, multiplier: 1, constant: 0)
162 view.addConstraint(bottomConstraint)
162 view.addConstraint(bottomConstraint)
164 messageSendView.height(60)
164 messageSendView.height(60)
@@ -172,7 +172,7 @@ class DialogViewController: UIViewController, UpdatableGroup, UITableViewDelegat
172 messageTextView.edgesToSuperview(excluding: .right)
172 messageTextView.edgesToSuperview(excluding: .right)
173 messageTextView.rightToLeft(of: sendButton)
173 messageTextView.rightToLeft(of: sendButton)
175− tableView.edgesToSuperview(excluding: .bottom)
175+ tableView.edgesToSuperview(excluding: .bottom, insets: .top(self.navigationController?.navigationBar.frame.size.height ?? 0))
176 tableView.bottomToTop(of: messageSendView)
176 tableView.bottomToTop(of: messageSendView)
178 self.view.layoutSubviews()
178 self.view.layoutSubviews()
@@ -191,7 +191,7 @@ class DialogViewController: UIViewController, UpdatableGroup, UITableViewDelegat
192 let keyBoardFrame = (userInfo[UIResponder.keyboardFrameEndUserInfoKey] as! NSValue).cgRectValue
192 let keyBoardFrame = (userInfo[UIResponder.keyboardFrameEndUserInfoKey] as! NSValue).cgRectValue
194− bottomConstraint.constant = notification.name == UIResponder.keyboardWillShowNotification ? -(keyBoardFrame.height) : 0
194+ bottomConstraint.constant = notification.name == UIResponder.keyboardWillShowNotification ? -(keyBoardFrame.height) + self.view.safeAreaInsets.bottom : 0
196 UIView.animate(withDuration: 0, delay: 0, options: .curveEaseOut, animations: {
196 UIView.animate(withDuration: 0, delay: 0, options: .curveEaseOut, animations: {
197 self.view.layoutIfNeeded()
197 self.view.layoutIfNeeded()