         } else {
             contentCollectionView.delegate = self
         }
-        contentCollectionView(contentCollectionView, didShowViewWith: currentIndex)
-        categoryHeaderView(headerView: headerView, selectedIndex: currentIndex)
     }
     
     override func viewWillLayoutSubviews() {

            }
        }
        currentIndex = selectedIndex
        contentCollectionView.reloadData()
    }
}


            }
        }
        currentIndex = index
//        contentCollectionView.reloadData()
    }
    
    func contentCollectionView(_ contentView: ContentCollectionView, didScrollFrom fromIndex: Int, to toIndex: Int, scale: Float) {
