kvyatkovskys / KVKCalendar

A most fully customization calendar for Apple platforms 📅
https://kvyatkovskys.github.io/KVKCalendar/
MIT License
550 stars 121 forks source link

Lazy Loading of agenda view #297

Closed virkrishna786 closed 1 year ago

virkrishna786 commented 1 year ago

Hi @kvyatkovskys

i am trying to load more than 500 events on listview . but it is taking time to show on UI Side .

is there any way by which we can make it in chunks or like lazy loading of events .

At one time it will load only 20-30 records . so The response time for loading list should be less.

Thanks & Regards Krishan vir Singh

kvyatkovskys commented 1 year ago

Hello @virkrishna786

hmm, perhaps we can add loading of events in parts 🤔

virkrishna786 commented 1 year ago

thank you @kvyatkovskys

virkrishna786 commented 1 year ago

Hi @kvyatkovskys

how can we add loading of events in parts . suppose we have more than 500 events at a time of api call .?

sabarics commented 1 year ago

@kvyatkovskys @virkrishna786 did you get any solution. I want to make api call for each month in list view. How can I achieve this? Is there any delegate to get event in list view?

kvyatkovskys commented 1 year ago

@sabarics Hello! I plan to open the ListView with opened tableView methods UITableViewDataSource, UITableViewDelegate... you will be able to override any one

sabarics commented 1 year ago

@kvyatkovskys thanks for thé replay. When can I expect that release? Also by using UItableview delegate and data source how can I know dates to get data? In month view we have a delegate so it's working fine. The same how can I use it for the list view? I want to load the last 12 months and the future 12 months events in the list view. Each month I have n number of events so here I need the pagination to refresh data for each month.

kvyatkovskys commented 1 year ago

New release 0.6.15 will be available on next week. I'll add new method to get list of events on ListView

sabari-zuper commented 1 year ago

@kvyatkovskys Thanks for the update.

sabari-zuper commented 1 year ago

@kvyatkovskys When can I expect the new release 0.6.15

kvyatkovskys commented 1 year ago

@kvyatkovskys When can I expect the new release 0.6.15

This week or weekend, thx

sabari-zuper commented 1 year ago

@kvyatkovskys any update on new release 0.6.15

kvyatkovskys commented 1 year ago

@kvyatkovskys any update on new release 0.6.15

Will release today, thx

sabari-zuper commented 1 year ago

@kvyatkovskys thanks for the update

kvyatkovskys commented 1 year ago

to get list of items in ListView func willDisplaySectionsInListView(_ sections: [ListViewData.SectionListView])

sabari-zuper commented 1 year ago

@kvyatkovskys How can I retrieve the date? For example, if I am in the list view, I want to make an API call for each month to retrieve the events specific to that month. How can I accomplish this?

kvyatkovskys commented 1 year ago

@kvyatkovskys How can I retrieve the date? For example, if I am in the list view, I want to make an API call for each month to retrieve the events specific to that month. How can I accomplish this?

Use the opened methods from ListView Like willDisplayCell

sabari-zuper commented 1 year ago

@kvyatkovskys There is no method like willDisplayCell in list view