     func showLoading()
     {
         spinner.startAnimating()
-        collectionView.isHidden = true
+        collectionView.isUserInteractionEnabled = false
     }
     
     func hideLoading()

            "collectionView":collectionView,
            "spinner":spinner]
        
        let metrics:[String:CGFloat] = [:]
        
        addConstraints(NSLayoutConstraint.constraints(
            withVisualFormat:"H:|-0-[collectionView]-0-|",

        { [weak self] in
            
            self?.spinner.stopAnimating()
            self?.collectionView.isUserInteractionEnabled = true
        }
    }
    
