CRRefresh icon indicating copy to clipboard operation
CRRefresh copied to clipboard

Footer keeps triggering

Open sameer4 opened this issue 4 years ago • 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

sameer4 avatar Oct 22 '19 09:10 sameer4