Browse Source

Inset the collection view content from the safe area. Fixes #352.

Zev Eisenberg 6 years ago
parent
commit
7d5b1287e5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Sources/MediaCategories/MediaCategoryViewController.swift

+ 1 - 0
Sources/MediaCategories/MediaCategoryViewController.swift

@@ -102,6 +102,7 @@ class VLCMediaCategoryViewController: UICollectionViewController, UICollectionVi
         collectionView?.backgroundColor = PresentationTheme.current.colors.background
         collectionView?.alwaysBounceVertical = true
         if #available(iOS 11.0, *) {
+            collectionView?.contentInsetAdjustmentBehavior = .always
 //            collectionView?.dragDelegate = dragAndDropManager
 //            collectionView?.dropDelegate = dragAndDropManager
         }