     }
     
     var navigationBar: NavigationBar = NavigationBar()
-    
+    var keyboardFrame: CGRect?
     open var showsNavigationBar: Bool = false
     var ownsNavigationBar: Bool = true
     

        }
    }
    
    override func viewDidLoad() {
        super.viewDidLoad()
        apply(theme: theme)

        if #available(iOS 11.0, *) {
            scrollView?.contentInsetAdjustmentBehavior = .never
        }
        NotificationCenter.default.addObserver(forName: Notification.Name.UIKeyboardWillChangeFrame, object: nil, queue: nil, using: { [weak self] notification in
            if let endFrame = notification.userInfo?[UIKeyboardFrameEndUserInfoKey] as? CGRect {
                self?.keyboardFrame = self?.view.convert(endFrame, from: self?.view.window)
            }
            self?.updateScrollViewInsets()
        })
    }
    
    override func viewWillAppear(_ animated: Bool) {
