         }
     }
 }
-
-private extension UICollectionView {
-    
-    func indexPathsForElements(in rect: CGRect, hidesCamera: Bool) -> [IndexPath] {
-        let allLayoutAttributes = collectionViewLayout.layoutAttributesForElements(in: rect)!
-        
-        if hidesCamera {
-            return allLayoutAttributes.map { $0.indexPath }
-        } else {
-            return allLayoutAttributes.flatMap { $0.indexPath.item == 0 ? nil : IndexPath(item: $0.indexPath.item - 1, section: $0.indexPath.section) }
-        }
-    }
-    
-}

        _createViews()
        _configViews()
        _layoutViews()
        _startCaching()
    }
    

    }
}

// MARK: - Actions

extension TTAAssetPickerViewController {
    func didClickCancelItem() {
        dismiss(animated: true, completion: nil)
    }
}

// MARK: - UICollectionViewDataSource

extension TTAAssetPickerViewController: UICollectionViewDataSource {
