|
@@ -95,6 +95,8 @@ private extension VLCEditController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// MARK: - VLCEditControllerDataSource
|
|
|
+
|
|
|
extension VLCEditController: VLCEditControllerDataSource {
|
|
|
func toolbarNeedsUpdate(editing: Bool) {
|
|
|
// editToolbar.isHidden = !editing
|
|
@@ -105,6 +107,8 @@ extension VLCEditController: VLCEditControllerDataSource {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// MARK: - VLCEditToolbarDelegate
|
|
|
+
|
|
|
extension VLCEditController: VLCEditToolbarDelegate {
|
|
|
func createPlaylist() {
|
|
|
if let model = category as? PlaylistModel {
|
|
@@ -179,6 +183,8 @@ extension VLCEditController: VLCEditToolbarDelegate {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// MARK: - UICollectionViewDataSource
|
|
|
+
|
|
|
extension VLCEditController: UICollectionViewDataSource {
|
|
|
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
|
|
|
return category.anyfiles.count
|
|
@@ -198,6 +204,8 @@ extension VLCEditController: UICollectionViewDataSource {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// MARK: - UICollectionViewDelegate
|
|
|
+
|
|
|
extension VLCEditController: UICollectionViewDelegate {
|
|
|
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
|
|
|
if let cell = collectionView.cellForItem(at: indexPath) as? VLCMediaViewEditCell {
|
|
@@ -212,6 +220,8 @@ extension VLCEditController: UICollectionViewDelegate {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+// MARK: - UICollectionViewDelegateFlowLayout
|
|
|
+
|
|
|
extension VLCEditController: UICollectionViewDelegateFlowLayout {
|
|
|
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
|
|
|
let contentInset = collectionView.contentInset
|