pavankataria / SwiftDataTables

A Swift Data Table package, display grid-like data sets in a nicely formatted table for iOS. Subclassing UICollectionView that allows ordering, and searching with extensible options.
MIT License
448 stars 69 forks source link

refreshControl #33

Closed altagir closed 5 years ago

altagir commented 5 years ago

I implemented a refreshControl on the scrollView containing the DataTable, but it fails sometimes I see you have started implementation for that, can it be completed?

pavankataria commented 5 years ago

What's happening on your side that's causing it to fail sometimes? Hah there's a couple of things I've started implementing but then paused since the main priorities needed to be fixed first.

I think the other issue is my highest priority at the moment. To make scrolling more efficient for 10,000 plus items.

altagir commented 5 years ago

there is a difference between ios10+ and ios9:

-> I wish there was some possibility to be able to avoid the collectionView bouncing (it is currently allowed on top and bottom, but not configurable)

pavankataria commented 5 years ago

Yeah, they've been programmed not to move. They're hardcoded to stay fixed. I'll have to think what I want to achieve with refresh control added.... perhaps the headers should move with it too....

altagir commented 5 years ago

i agree.
let s say if one has a delegate callback to refresh data, your behavior could be overridden to have the whole view act as a pulldown. should also have a completion block to notify async of refresh completion

i also dont see the interest ot a bouncing dataview. right now the pull to refresh overlap the search and header fields, which is weird. i would rather have the whole view bounce or not.

regards

altagir commented 5 years ago

will implement in my fork