KeyboardResize is a library that automatically resizes the view of your controllers when the keyboard appears.
pod 'KeyboardResize', '~> 2.0'
import KeyboardResize
override func viewDidLoad() {
super.viewDidLoad()
kr_resizeViewWhenKeyboardAppears = true
}
KeyboardResize is available under the MIT license. See the LICENSE file for more info.