Browse Source

Remove unnecessary refresh control in object explorer

Most update as you scroll, there is little benefit to even having a refresh control. It also inhibits the drag-to-dismiss iOS 13 sheet gesture.
Tanner Bennett 6 years ago
parent
commit
b4f07a0f92
1 changed files with 0 additions and 13 deletions
  1. 0 13
      Classes/ObjectExplorers/FLEXObjectExplorerViewController.m

+ 0 - 13
Classes/ObjectExplorers/FLEXObjectExplorerViewController.m

@@ -94,14 +94,6 @@
     // to avoid the KVO prefix for observed objects
     self.title = [[self.object class] description];
 
-    // Refresh
-    self.refreshControl = [UIRefreshControl new];
-    [self.refreshControl
-        addTarget:self
-        action:@selector(refreshControlDidRefresh:)
-        forControlEvents:UIControlEventValueChanged
-    ];
-
     // Search
     self.showsSearchBar = YES;
     self.searchBarDebounceInterval = kFLEXDebounceInstant;
@@ -131,11 +123,6 @@
 
 #pragma mark - Private
 
-- (void)refreshControlDidRefresh:(id)sender {
-    [self reloadData];
-    [self.refreshControl endRefreshing];
-}
-
 - (NSArray<FLEXTableViewSection *> *)makeSections {
     FLEXObjectExplorer *explorer = self.explorer;