Browse Source

Fix scope carousel not working properly on iOS 13

Tanner Bennett 6 years ago
parent
commit
a3f66b3f87
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Classes/Core/FLEXTableViewController.m

+ 6 - 0
Classes/Core/FLEXTableViewController.m

@@ -70,6 +70,12 @@ CGFloat const kFLEXDebounceForExpensiveIO = 0.5;
     self.searchController.searchBar.delegate = self;
     self.searchController.searchBar.delegate = self;
 
 
     self.automaticallyShowsSearchBarCancelButton = YES;
     self.automaticallyShowsSearchBarCancelButton = YES;
+
+#if FLEX_AT_LEAST_IOS13_SDK
+    if (@available(iOS 13, *)) {
+        self.searchController.automaticallyShowsScopeBar = NO;
+    }
+#endif
     
     
     if (@available(iOS 11.0, *)) {
     if (@available(iOS 11.0, *)) {
         self.navigationItem.searchController = self.searchController;
         self.navigationItem.searchController = self.searchController;