Commit a02c5028 authored by Soomin Lee's avatar Soomin Lee

VLCEditController: Cosmetic: Add marks

parent 096be299
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment