Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Swift 0.65 KB | None | 0 0
  1. func reloadSearchFiltersWith(options: [EquipmentSearchFilter]) {
  2.         UIView.setAnimationsEnabled(false)
  3.         self.searchFilterTable.reloadData()
  4.         UIView.setAnimationsEnabled(true)
  5.         self._interactor.searchForEquipmentsWith(on: self._model, name: nil, filters: self._model.selectedFilter, onSelectedView: self.selectedEquipment)
  6.         self.animateFilterTableConstraint()
  7.        
  8.         if _model.historyList.count == 0 && _model.filterOptionList.count <= 2 {
  9.             _model.historyList = HistoryWorker.getHistoryList(for: _model.filterOptionList.first!.groups)
  10.             self.recentSearchTable.reloadData()
  11.         }
  12.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement