 //MARK: - UICollection View Delegate
 extension SwiftDataTable: UIScrollViewDelegate {
     public func scrollViewDidScroll(_ scrollView: UIScrollView) {
+        if(self.searchBar.isFirstResponder){
+            self.searchBar.resignFirstResponder()
+        }
         if self.disableScrollViewLeftBounce() {
             if (self.collectionView.contentOffset.x <= 0) {
                 self.collectionView.contentOffset.x = 0

    }
    
    func heightForSectionFooter() -> CGFloat {
        return 50
    }
    
    func heightForSectionHeader() -> CGFloat {
        return 50
    }
    
    func widthForRowHeader() -> CGFloat {

                }
            }
        }, completion: { finished in
            if animations == false {
                UIView.setAnimationsEnabled(true)
            }
            completion?(finished)
        })
    }
}



extension SwiftDataTable: UISearchBarDelegate {
    public func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
        self.executeSearch(searchText.lowercased())
    }
}
