-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
Description
RefreshView refresh indicator not displaying when refreshing is done programatically
refresh indicator displays only when refresh is done manually (only when pulled to refresh)
Sample App code attached and also public github repo link shared
Steps to Reproduce
- Download and build sample app (or clone from public repo link shared)
- Run on any iOS Simulator/Device
- when app launches click on Goto List button
- observe the RefreshView refreshes the contents (programatically loading content) but refresh indicator is not displaying
- pull to refresh (this time content refreshes and also refresh indicator displays while refreshing)
Link to public reproduction project repository
https://github.com/srpai746/RefreshView-Issue
Version with bug
9.0.110 SR12
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
any iOS platform (for eg. 18.5, 26.0)
Did you find any workaround?
yes,
removing IsRefreshing binding on RefreshView and delaying Refresh by 100 milliseconds using code behind file worked
private async void Vm_PropertyChanged(object? sender, PropertyChangedEventArgs e)
{
if (e.PropertyName == "IsBusy" && vm.IsBusy)
{
await Task.Delay(100);
RefreshView.IsRefreshing = true;
}
else if(e.PropertyName == "IsBusy" && !vm.IsBusy)
{
RefreshView.IsRefreshing = false;
}
}