     private let cellIdentifier = "bookmark_cell"
     private let bookmarkStore:BookmarksStore
 
-    private var searchController: UISearchController {
-        let controller = UISearchController(searchResultsController: nil)
-        controller.searchBar.delegate = self
-        controller.searchBar.placeholder = NSLocalizedString(Constants.Strings.search, comment: "")
-        controller.searchBar.tintColor = Styles.Colors.Blue.medium.color
-        controller.searchBar.backgroundColor = .clear
-        controller.searchBar.searchBarStyle = .minimal
-        return controller
-    }
+    private var searchController: UISearchController = UISearchController(searchResultsController:nil)
     
     private var filteredBookmarks: [BookmarkModel]?
 

import SwipeCellKit

class BookmarksViewController: UITableViewController,
    UISearchBarDelegate,
    PrimaryViewController,
    SwipeTableViewCellDelegate,
TabNavRootViewControllerType {

    // MARK: - Private API

    private func configureSearchBar() {

        searchController.searchBar.placeholder = NSLocalizedString(Constants.Strings.search, comment: "")
        searchController.searchBar.tintColor = Styles.Colors.Blue.medium.color
        searchController.searchBar.backgroundColor = .clear
        searchController.searchBar.searchBarStyle = .minimal
        searchController.searchBar.sizeToFit()
        searchController.obscuresBackgroundDuringPresentation = false
        searchController.searchResultsUpdater = self
        definesPresentationContext = true
       
        if #available(iOS 11.0, *) {
            navigationController?.navigationBar.prefersLargeTitles = true
            navigationItem.searchController = searchController
        } else {
            tableView.tableHeaderView = searchController.searchBar
        }
