     if let userInfo = notification.userInfo,
       let value = userInfo[UIKeyboardFrameBeginUserInfoKey] as? NSValue {
 
-      let height = value.CGRectValue().size.height - tabBarHeigh
+      let layoutGuideHeight = bottomLayoutGuide?.length ?? 0
+      let height = value.CGRectValue().size.height - layoutGuideHeight
       
       let insets =  UIEdgeInsets(
         top: 0,

public class UnderKeyboard {
  
  private weak var scrollView: UIScrollView?
  
  private class var shared: UnderKeyboard {
    return tegUnderKeyboard

  */
  public class func scrollView(scrollView: UIScrollView, bottomLayoutGuide: UILayoutSupport? = nil) {
    shared.scrollView = scrollView
    shared.bottomLayoutGuide = bottomLayoutGuide
  }
  
  private init() {
