         }
         view.addSubview(tableView)
         mainScrollView = tableView
-        
-        automaticallyAdjustsScrollViewInsets = true
+
+        tableView.snp.makeConstraints { make in
+            make.edges.equalToSuperview()
+        }
     }
     
     override func viewDidAppear(_ animated: Bool) {

    override func viewDidLoad() {
        super.viewDidLoad()
        guard let (cellIdentifier, cellClass) = cellIdentifiersClasses[searchType] else { return }
        tableView = EmptyStateTableView(frame: view.frame, type: .search)
        tableView.register(cellClass, forCellReuseIdentifier: cellIdentifier)
        tableView.showsVerticalScrollIndicator = false
        tableView.loadingAnimation.center.y -= TabbedPageViewController.tabBarY

//

import UIKit
import SnapKit
import NVActivityIndicatorView

enum SearchType {
