CRAnimation/CRRefresh

Footer keeps triggering

sameer4 opened this issue · 0 comments

I'm experiencing a issue where footer keeps triggering once i trigger it manually.

image

here the code

table.cr.addFootRefresh(animator: NormalHeaderAnimator()) { [weak self] in
            guard let self = self else { return }
            
            if self.selectedFilter.rawValue > SearchFilterType.All.rawValue {
                self.handleSearch(for: trim(self.txtSearch.text))
            }
            
            self.table.cr.endLoadingMore()
}

and in handleSearch, i'm query the database and then reloading the tableview