I am using NVActivityIndicatorView for loading animation.
I have these function to add and remove activity indicator.
func addActivityIndicator() {}
func startActivityIndicatorView() {}
func stopActivityIndicatorView() {}
I have a header which I implement in
override func collectionView(collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, atIndexPath indexPath: NSIndexPath) -> UICollectionReusableView {
let headerView = ...
return headerView
}
My problem is header is visible while collectionView is loading. I want to hide it while collectionView is loading.