         showMoreButtonEnabled = false
         tableView.reloadData()
     }
+    
+    private func unfoldSearchbar() {
+        guard let searchBarHeight = navigationItem.searchController?.searchBar.intrinsicContentSize.height else { return }
+        tableView.setContentOffset(CGPoint(x: 0, y: -searchBarHeight + tableView.contentOffset.y), animated: true)
+    }
 }


    override func viewDidAppear(_ animated: Bool) {
        super.viewDidAppear(animated)

        // Allows the search bar to be scrolled away even though we initially show it.
        navigationItem.hidesSearchBarWhenScrolling = true
    }

    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {

            searchController.searchBar.barStyle = .black
        }
        navigationItem.searchController = searchController
        self.searchController = searchController

        definesPresentationContext = true
