Como determinar quando todas as imagens foram baixadas de um conjunto no Swift?

Estou usando a biblioteca PinRemoteImage para baixar imagens que preenchem umcollectionView. Desejo atualizar dinamicamente a altura da célula com base na altura da imagem. Por isso, preciso saber quando todas as minhas imagens são baixadas para que eu possa recarregar / invalidar minhacollectionViewLayout. Qual é a melhor maneira de determinar quando não há mais imagens para download?

override func collectionView(collectionView: UICollectionView, cellForItemAtIndexPath indexPath: NSIndexPath) -> UICollectionViewCell {

        let cell = collectionView.dequeueReusableCellWithReuseIdentifier(reuseIdentifier, forIndexPath: indexPath) as! PinCollectionViewCell

       cell.pinImage?.pin_updateWithProgress = true
       cell.pinImage?.image = nil

        if let pinImageURL = self.pins[indexPath.row].largestImage().url {


            cell.pinImage?.pin_setImageFromURL(pinImageURL, completion: ({ (result : PINRemoteImageManagerResult) -> Void in

                if let image = result.image {
                    self.imageArray.append(image)

                }

questionAnswers(1)

yourAnswerToTheQuestion