         }
     }
     
-//    fileprivate(set) open lazy var searchBar: UISearchBar = {
-////        let searchBar
-//    }()
+    fileprivate(set) open lazy var searchBar: UISearchBar = {
+        let searchBar = UISearchBar()
+        searchBar.searchBarStyle = .minimal;
+        searchBar.placeholder = "Search";
+        searchBar.delegate = self
+//        searchBar.tintColor = UIColor.white
+        searchBar.barTintColor = UIColor.white
+        self.addSubview(searchBar)
+        return searchBar
+    }()
     
     //Lazy var
     fileprivate(set) open lazy var collectionView: UICollectionView = {

        filteredRows: DataTableViewModelContent,
        animations: Bool = false,
        completion: ((Bool) -> Void)? = nil){
//        if animations == false {
//            UIView.setAnimationsEnabled(false)
//        }
        self.collectionView.performBatchUpdates({
            //finding the differences
            

//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
