Skip to content

RefreshView refresh indicator not displaying when refreshing is done programatically #32244

@srpai746

Description

@srpai746

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

MauiApp9.zip

Steps to Reproduce

  1. Download and build sample app (or clone from public repo link shared)
  2. Run on any iOS Simulator/Device
  3. when app launches click on Goto List button
  4. observe the RefreshView refreshes the contents (programatically loading content) but refresh indicator is not displaying
  5. 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;
}
}

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions