Преглед на файлове

Merge pull request #2457 from nextcloud/2437-pull-to-refresh-is-jankydoesnt-show-progress-indicator-during-pull

Fix refresh indicator is janky/doesn't show progress indicator during pull
Marino Faggiana преди 1 година
родител
ревизия
a1d5df9816
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

+ 1 - 1
iOSClient/Main/Collection Common/NCCollectionViewCommon.swift

@@ -124,7 +124,7 @@ class NCCollectionViewCommon: UIViewController, UIGestureRecognizerDelegate, UIS
         collectionView.register(UINib(nibName: "NCSectionFooter", bundle: nil), forSupplementaryViewOfKind: UICollectionView.elementKindSectionFooter, withReuseIdentifier: "sectionFooter")
 
         // Refresh Control
-        collectionView.addSubview(refreshControl)
+        collectionView.refreshControl = refreshControl
         refreshControl.action(for: .valueChanged) { _ in
             self.dataSource.clearDirectory()
             self.reloadDataSourceNetwork(forced: true)