     
     fileprivate var currentView: View = .savedArticles {
         didSet {
+            searchBar.resignFirstResponder()
             switch currentView {
             case .savedArticles:
                 removeChild(readingListsCollectionViewController)

        
        currentView = .savedArticles
        
        searchBar.autoresizingMask = [.flexibleWidth, .flexibleHeight]
        searchBar.returnKeyType = .search
        searchBar.searchBarStyle = .minimal

                
                navigationItem.leftBarButtonItem = nil
                isSearchBarHidden = false
                
                addChild(savedArticlesCollectionViewController)
                
