Bläddra i källkod

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 år sedan
förälder
incheckning
a1d5df9816
1 ändrade filer med 1 tillägg och 1 borttagningar
  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)