瀏覽代碼

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

Zev Eisenberg 6 年之前
父節點
當前提交
7d5b1287e5
共有 1 個文件被更改,包括 1 次插入0 次删除
  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
         }