I am using your pull to refresh extension.
When I pull its not going back to its original place. Loader keeps loading.
NavigationView{
List{
ForEach(0..<self.dataSource.myModel.count, id: \.self){ index in
SelectionCell(title: self.dataSource.myModel[index].titles, date: self.dataSource.myModel[index].startDates, phoneNumber: "", message: self.dataSource.myModel[index].titles, selectedItem: self.$selectedItem, beforetext: self.$beforetext, aftertext: self.$aftertext, showtitle: self.$showtitle)
}
.onPull(perform: {
print("isLoading OnPull is : \(self.isLoading)")
self.isLoading = false
DispatchQueue.main.asyncAfter(deadline: .now() + 1.5) {
self.dataSource.myModel = []
self.dataSource.getCalendarEvents()
//self.dataSource.sortModelWithRespectToDate()
self.isLoading = true
}
}, isLoading: self.isLoading)
.navigationBarTitle("AGENDA")
.navigationBarHidden(false)
}