Skip to content

Commit

Permalink
Delete deprecated code
Browse files Browse the repository at this point in the history
  • Loading branch information
AcacioFernando committed Aug 10, 2021
1 parent 14b7d2d commit 69cc2a1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 14 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 1 addition & 8 deletions src/BlipChat/ThreadViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,7 @@ internal class ThreadViewController: UIViewController, WKNavigationDelegate, UIS
/// Handle keyboard appearing on screen
@objc func keyboardWillShow(notification: NSNotification) {
if let keyboardSize = (notification.userInfo?[UIResponder.keyboardFrameEndUserInfoKey] as? NSValue)?.cgRectValue {
let statusBarHeight = UIApplication.shared.statusBarFrame.height
let navBarheight = self.navigationController?.navigationBar.bounds.size.height
let height = -keyboardSize.height + statusBarHeight + navBarheight!
self.view.frame.origin.y = height


bottomConstraint.constant = -keyboardSize.height
updateViewConstraints()

Expand All @@ -109,9 +105,6 @@ internal class ThreadViewController: UIViewController, WKNavigationDelegate, UIS

/// Handle keyboard hiding on screen
@objc func keyboardWillHide(notification: NSNotification) {
let statusBarHeight = UIApplication.shared.statusBarFrame.height
let navBarheight = self.navigationController?.navigationBar.bounds.size.height
self.view.frame.origin.y = statusBarHeight + navBarheight!

bottomConstraint.constant = 0
updateViewConstraints()
Expand Down

0 comments on commit 69cc2a1

Please sign in to comment.