Open lkuczborski opened 8 years ago
@gontovnik will you have some time to look at it?
@gontovnik any chance to look at it?
+1
any solution?
Temporally Solution
Scroll to last item and scroll back to top again solved this problem
In your dg_addPullToRefreshWithActionHandler
let lastItemIndex = NSIndexPath(item: YOUR_DATA.count - 1, section: 0)
let firstItemIndex = NSIndexPath(item: 1, section: 0)
self?.collectionview?.scrollToItem(at: lastItemIndex as IndexPath, at: .bottom, animated: true)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5)
{
self?.collectionview_transaction?.scrollToItem(at: firstItemIndex as IndexPath, at: .bottom, animated: true)
}
Steps to reproduce:
Effect: Pull to refresh sometimes stays on screen in some kind of hung state (circle not animating, view half cut). Scrolling the view removes the glitch from screen immediately
Expected effect: View controller should appear in normal state with pull to refresh either hidden or finishing the animation gracefully.
Any advice on that or is it a bug that needs to be fixed?