         let scrollView = UIScrollView()
         scrollView.bounces = false
         scrollView.keyboardDismissMode = .interactive
+        if #available(iOS 11.0, *) {
+            scrollView.contentInsetAdjustmentBehavior = .never
+        }
         self.view.addSubview(scrollView)
         constraintEqual(anchor: scrollView.leftAnchor, toAnchor: self.view.leftAnchor)
         constraintEqual(anchor: scrollView.topAnchor, toAnchor: self.view.topAnchor)

    weak var headerView: HeaderView!
    weak var scrollView: UIScrollView!
    weak var messageView: MessageView?
    var current: View?
    var keyboard: Bool = false
    var routes: Routes = Routes()

        scrollView.translatesAutoresizingMaskIntoConstraints = false
        self.scrollView = scrollView

        let scrollContentView = UIView()
        self.scrollView.addSubview(scrollContentView)
        constraintEqual(anchor: scrollContentView.leftAnchor, toAnchor: scrollView.leftAnchor)
        constraintEqual(anchor: scrollContentView.topAnchor, toAnchor: scrollView.topAnchor)
        constraintEqual(anchor: scrollContentView.rightAnchor, toAnchor: scrollView.rightAnchor)
        constraintEqual(anchor: scrollContentView.bottomAnchor, toAnchor: scrollView.bottomAnchor)
        constraintEqual(anchor: scrollContentView.widthAnchor, toAnchor: scrollView.widthAnchor)
        constraintEqual(anchor: scrollContentView.heightAnchor, toAnchor: view.heightAnchor, priority: .defaultLow)
        scrollContentView.translatesAutoresizingMaskIntoConstraints = false
        self.scrollContentView = scrollContentView

        let header = HeaderView()
        self.scrollContentView.addSubview(header)
        constraintEqual(anchor: header.leftAnchor, toAnchor: scrollContentView.leftAnchor)
        constraintEqual(anchor: header.topAnchor, toAnchor: scrollContentView.topAnchor)
        constraintEqual(anchor: header.rightAnchor, toAnchor: scrollContentView.rightAnchor)
        header.translatesAutoresizingMaskIntoConstraints = false

        header.showClose = self.lock.options.closable
