             doLayout()
             return
         }
-        
+        self.progressView.isHidden = false
         weak var weakSelf = self
         imageView.kf.setImage(with: url, placeholder: image, options: nil, progressBlock: { (receivedSize, totalSize) in
             if totalSize > 0 {
-                weakSelf?.progressView.isHidden = false
                 weakSelf?.progressView.progress = CGFloat(receivedSize) / CGFloat(totalSize)
             }
         }, completionHandler: { (image, error, cacheType, url) in

        let size = fitSize
        let needResetSize = imageView.bounds.size.width < size.width
            || imageView.bounds.size.height < size.height
        UIView.animate(withDuration: 0.25) { 
            self.imageView.center = self.centerOfContentSize
            if needResetSize {
                self.imageView.bounds.size = size


public class PhotoBrowserCell: UICollectionViewCell {
    // MARK: - 属性
    
    /// 代理
    weak var photoBrowserCellDelegate: PhotoBrowserCellDelegate?
    
